Variable variables

From: Date: Tue, 20 Jun 2000 08:34:22 +0000
Subject: Variable variables
Groups: php.general 
Request: Send a blank email to php-general+get-2278@lists.php.net to get a copy of this message
I have the following code .............
echo $b[holdnavn]     //outputs "Denmark"
echo $a[Denmark][score]    //outputs "5"
Now i would like to include $b[holdnavn] in the second, like this: $a[{$b[holdnavn]]}[score], which should output "5". I have looking at http://www.php.net/manual/language.variables.variable.php the last part, and tried that, but could not get it to work. How am i doing wrong?. Best Regards Adam Helms

« previous php.general (#2278) next »