RE: [PHP] Naming a variable with a variable
| From: | Dan Joseph | Date: | Tue, 17 Jun 2003 18:21:48 +0000 |
| Subject: | RE: [PHP] Naming a variable with a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151874@lists.php.net to get a copy of this message | ||
Hi,
> Ho can I create (name) a variable with other variables value?
>
> If $foo = "bar";
>
> then the variable I want to create is $bar.
$$foo = "blah";
that will set $bar equal to blah.
-Dan Joseph