$test = "success";
$open = "$";
$close = ";";
$primary = "test";
$ID = "$open$primary$close";
echo $ID;
What the user wants is for the echo of $ID to be "success", but instead it is echoing "$test".
What you need to do to make this work, is really very simple. Just put it in between {} symbols. For example:
$test = "success";
$primary = "test";
$ID = ${$primary};
echo $ID;
Now when we execute the code, it is setting $ID equal to $test and therefor the output will be "success".

