Re: IS THIS A BUG?

From: Date: Wed, 27 Aug 2003 22:07:20 +0000
Subject: Re: IS THIS A BUG?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160967@lists.php.net to get a copy of this message
Steve Todd wrote:
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.
Yes it's legal. http://us2.php.net/manual/en/language.variables.variable.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#160967) next »