In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (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


echo $doo["dah"]; # also correct


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to