If I have the name of a variable stored in another variable, can I read the contents of the variable? EG:
Any help would be much appreciated!
-Ed ;-)
Code:
$nameOfVariable = "foo";
$foo = "contents of variable that I want to read";
# Now, supposing that $foo could be anything,
# eg. $sweetcorn, is it possible to read the contents
# of the variable using $nameOfVariable?
-Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
Destiny is not a matter of chance; it is a matter of choice.