View Single Post
Old 11-09-2008, 10:29 PM   #3 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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]; 
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
pipesportugal (11-09-2008)