Value as variable name [solved]
Posted: Sun Aug 13, 2006 7:02 pm
I've ever asked myself if it's possible to use the value of an object as a variable name. Something like this:
but this doesn't work. is there a solution to solve that problem?
Code: Select all
$test='abc';
$foo[$test] = 'bla'; // $foo['abc'] = 'bla'