note 45122 added to language.variables.variable

From: Date: Thu, 26 Aug 2004 18:26:25 +0000
Subject: note 45122 added to language.variables.variable
Groups: php.notes 
Request: Send a blank email to php-notes+get-75348@lists.php.net to get a copy of this message
Hmm someone complained that you couldn't dynamically build the keys and indexes of an array to access the content a while ago played a little bit with varibale variables and found a quite usefull way: $foo = Array('ahg' => 'opa'); $index = "ahg"; $bar = "{$foo[$index]}"; $value = $bar; echo $value; actually works fine to access they content of the key "ahg" in this array. ---- Manual Page -- http://www.php.net/manual/en/language.variables.variable.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45122 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45122&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45122&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75348) next »