I have 2 variables:
$var1 = "bob";
$var2 = "bill";
I want to make the value of $var1 a variable, and its value be the value of $var2.
Example:
$bob = $var2;
To do this, obviously I am using eva()
here is the eval statment.
eval("\$$var1 = \"$var2\";");
But its not working. Could it be that its creating a variable variable? Instead of putting $ THEN the value of $var1. If so, how do I stop that.
Derek C.