note 9019 deleted from Variable variables by jeroen
| From: | jeroen@php.net | Date: | Thu, 24 May 2001 00:17:48 +0000 |
| Subject: | note 9019 deleted from Variable variables by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14234@lists.php.net to get a copy of this message | ||
You can have a variable variable that depends on more than one variable:
$var1="hello_";
$var2="world";
$hello_world = "hi everyone";
echo ${$var1.$var2};
Should output: hi everyone