Re: IS THIS A BUG?
| From: | Chris Sherwood | Date: | Wed, 27 Aug 2003 22:26:05 +0000 |
| Subject: | Re: IS THIS A BUG? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160973@lists.php.net to get a copy of this message | ||
No its not a bug
basically what you did was assign a value to a value of a variable
a $$ is how you access the value of a variable as a variable
----- Original Message -----
From: "Steve Todd" <steve_todd@blueyonder.co.uk>
To: <php-general@lists.php.net>
Sent: Wednesday, August 27, 2003 1:27 PM
Subject: [PHP] IS THIS A BUG?
> 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.
>
> Steve
>