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'; Anyone know how I go about doing this? Thanks in advance,
Dunc.
I want to assign the value of $var2 to the variable that is stored in $var1. Eg. $color = 'green'; Anyone know how I go about doing this? Thanks in advance,
Dunc.