> I'm studying some code from the net and was kinda curious.  There are 
> places where it references variables like this:
> 
>       $$testvar
> 
> What's the difference between that and
> 
>       $testvar
> 
> ?

$testvar means "the value of the variable named 'testvar'".

$$testvar means "the value of the variable with the name of the 
value of 'testvar'". ie - testvar is "foo", $$testvar is equivalent
to $foo.

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to