Re: IS THIS A BUG?
| From: | Curt Zirzow | Date: | Wed, 27 Aug 2003 22:11:27 +0000 |
| Subject: | Re: IS THIS A BUG? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160968@lists.php.net to get a copy of this message | ||
* Thus wrote Steve Todd (steve_todd@blueyonder.co.uk):
> Is it possible to define a variable, such as:
> $foo = "bar";
>
> and then do as follows to create a totally different variable:
> $$foo = "text here";
>
> this seems to mean $bar = "text here";.
>
> Is this a bug or can we legally use it.
perfectly legal, its called a variable variable...
http://php.net/variables.variable
Curt
--
"I used to think I was indecisive, but now I'm not so sure."