Re: Variable variables

From: Date: Tue, 20 Jun 2000 14:01:06 +0000
Subject: Re: Variable variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2300@lists.php.net to get a copy of this message
On Tue, Jun 20, 2000 at 10:34:22AM +0200, Adam Helms wrote: > 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". Just looking quickly, shouldn't it be: v-- The }'s outside of the whole $b[holdvan] ? $a[{$b[holdvan]}[score] -- Chris Moyer -- cmoyer@chekinc.com -- PHP Developer -- Chek.com

« previous php.general (#2300) next »