note 45122 deleted from language.variables.variable by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 26 Aug 2004 20:07:58 +0000 |
| Subject: | note 45122 deleted from language.variables.variable by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75355@lists.php.net to get a copy of this message | ||
Note Submitter: fjtdo at t-online dot de
----
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.