note 20839 deleted from language.types.array by torben

From: Date: Thu, 18 Apr 2002 00:07:11 +0000
Subject: note 20839 deleted from language.types.array by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29512@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.

« previous php.notes (#29512) next »