Re: Variable variables

From: Date: Tue, 20 Jun 2000 12:05:55 +0000
Subject: Re: Variable variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-2290@lists.php.net to get a copy of this message
>I have found that >echo "$a[$b[holdnavn]][score]", "<br>\n"; >doesn't work. I think that when putting things like this in quotes >get's them parsed the wrong (unexpected) way. You have to use curly braces when accessing associative arrays in a string, or something =P echo "{$a[$b[holdnavn]][score]}", "<br>\n"; .. should work.

« previous php.general (#2290) next »