note 20839 modified in language.types.array by torben
| From: | torben@php.net | Date: | Thu, 18 Apr 2002 00:06:47 +0000 |
| Subject: | note 20839 modified in language.types.array by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29511@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.
--was--
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