I have two variables $var1 and $var2. The first variable contains the name of a variable that has not been defined: $var1 = '$color'; The second variable contains a value: $var2 = 'green';
I want to assign the value of $var2 to the variable that is stored in $var1. Eg. $color = 'green'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.