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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to