note 24447 added to language.types.array
| From: | rytier@php.net | Date: | Fri, 16 Aug 2002 11:37:02 +0000 |
| Subject: | note 24447 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35127@lists.php.net to get a copy of this message | ||
re: slava@nospam.trushkin.net post
--
one of those recommended practices...
echo "value = $array[key] \n";
is deprecated - see above "Array do's & don'ts".
The best way is either using curly brackets...
echo "value = {$array['key']} \n";
or "dot splitting" the string and still quoting the key.
echo "value = ".$array['key']." \n";
--
http://www.php.net/manual/en/language.types.array.php
http://master.php.net/manage/user-notes.php?action=edit+24447
http://master.php.net/manage/user-notes.php?action=delete+24447
http://master.php.net/manage/user-notes.php?action=reject+24447