Re: Naming a variable with a variable

From: Date: Tue, 17 Jun 2003 18:23:18 +0000
Subject: Re: Naming a variable with a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151877@lists.php.net to get a copy of this message
$$foo or ${$foo} somethinbg like that ? http://us2.php.net/manual/en/language.variables.variable.php R'twick ----- Original Message ----- From: "Antti" <antti@victoria.fi> To: <php-general@lists.php.net> Sent: Tuesday, June 17, 2003 2:19 PM Subject: [PHP] Naming a variable with a variable > Ho can I create (name) a variable with other variables value? > > If $foo = "bar"; > > then the variable I want to create is $bar. > > How do I do this? > > -antti > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#151877) next »