Re: IS THIS A BUG?

From: Date: Wed, 27 Aug 2003 22:57:42 +0000
Subject: Re: IS THIS A BUG?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160981@lists.php.net to get a copy of this message
I also wanna add that it works for functions as well: $foo="bar"; $foo(); would call the function bar()... I read this in the manual at some point like a year ago... This isn't something I would recommend using as you could in 90% of the cases screw it all badly... Could be useful sometimes though (I got an example, but I'm a bit lazy...) -- // DvDmanDT MSN: dvdmandt@hotmail.com Mail: dvdmandt@telia.com "Steve Todd" <steve_todd@blueyonder.co.uk> skrev i meddelandet news:000501c36cd9$ad9bae70$4d782a52@speedchild... > 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 >

« previous php.general (#160981) next »