note 20839 added to language.types.array
| From: | jamesbarros at dontspamme dot hotmail dot com | Date: | Wed, 17 Apr 2002 23:40:21 +0000 |
| Subject: | note 20839 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29510@lists.php.net to get a copy of this message | ||
You can not use multidimensional arrays within quoted echo's. It cuts off the end and presumes
it's text when you're in quotes.
echo "$product[$id][price]";
will get you: ARRAY[price]
whereas
echo $product[$id][price];
gets you the price of the product.
--
http://www.php.net/manual/en/language.types.array.php
http://master.php.net/manage/user-notes.php?action=edit+20839
http://master.php.net/manage/user-notes.php?action=delete+20839
http://master.php.net/manage/user-notes.php?action=reject+20839