RE: [PHP] what does $$ mean?

From: Date: Mon, 05 Mar 2001 04:06:56 +0000
Subject: RE: [PHP] what does $$ mean?
Groups: php.general 
Request: Send a blank email to php-general+get-42569@lists.php.net to get a copy of this message
> 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

« previous php.general (#42569) next »