Re: Re: Value of $_* variables

From: Date: Wed, 06 Mar 2002 05:51:59 +0000
Subject: Re: Re: Value of $_* variables
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-87429@lists.php.net to get a copy of this message
In article <php.general-87415@news.php.net>, php-general@gremlins.com.hk (Jason Wong) wrote: > echo "$doo[dah]"; # is correct If constant 'dah' is defined, and its value is the name of the key you wish to access from array '$doo'. But if the string literall 'dah' is itself the name of the key you are trying to access, then the above is *not* correct. For that, use: > echo $doo['dah']; # is correct or echo $doo["dah"]; # also correct -- CC

« previous php.general (#87429) next »