11-09-2008, 10:29 PM
|
#3 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
There are numerous ways of doing this, here are three:
PHP Code:
$variable1 = 'Hello';
$title = 'variable1';
echo $$title;
// or
echo ${$title};
// or (assuming global scope)
echo $GLOBALS[$title];
|
|
|
|