note 91318 added to language.variables.variable

From: Date: Fri, 05 Jun 2009 15:01:58 +0000
Subject: note 91318 added to language.variables.variable
Groups: php.notes 
Request: Send a blank email to php-notes+get-156395@lists.php.net to get a copy of this message
Note that if you need a variable to being with something prior to the variable variables the expected: $foo_{$bar} = $foobar; Or: $foo_$bar = $foobar; Will not work, only solution I know of at the moment is to use eval to process it: eval('$foo_'.$bar.' = '.$foobar.';'); ---- Server IP: 92.48.74.199 Probable Submitter: 79.170.75.94 ---- Manual Page -- http://www.php.net/manual/en/language.variables.variable.php Edit -- https://master.php.net/note/edit/91318 Del: integrated -- https://master.php.net/note/delete/91318/integrated Del: useless -- https://master.php.net/note/delete/91318/useless Del: bad code -- https://master.php.net/note/delete/91318/bad+code Del: spam -- https://master.php.net/note/delete/91318/spam Del: non-english -- https://master.php.net/note/delete/91318/non-english Del: in docs -- https://master.php.net/note/delete/91318/in+docs Del: other reasons-- https://master.php.net/note/delete/91318 Reject -- https://master.php.net/note/reject/91318 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156395) next »