note 91448 deleted from language.variables.variable by danbrown

From: Date: Wed, 10 Jun 2009 12:56:41 +0000
Subject: note 91448 deleted from language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156740@lists.php.net to get a copy of this message
Note Submitter: Wim Marin ---- I think the solution of Mark Stoddart isn't the best way to do this. A better way -I think- is to use a temporary variable: <?php $bar = 'chocolat'; $foo_chocolat = 'yummie'; $tmp = 'foo_'.$bar; echo $$tmp; //output: yummie

« previous php.notes (#156740) next »