Bug #13010 Updated: echoed multipdimensional arrays
| From: | cardinal@php.net | Date: | Wed, 29 Aug 2001 00:43:49 +0000 |
| Subject: | Bug #13010 Updated: echoed multipdimensional arrays | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64548@lists.php.net to get a copy of this message | ||
ID: 13010
Updated by: cardinal
Reported By: dcaylor@maf.org
Old Status: Open
Status: Bogus
Bug Type: Arrays related
Operating System: Linux 7.1
PHP Version: 4.0.4pl1
New Comment:
Multidimensional arrays need to be enclosed in curly braces to be interpolated in that manner.
echo "This is not a bug. {$array[one][two]}";
Previous Comments:
------------------------------------------------------------------------
[2001-08-28 20:34:09] dcaylor@maf.org
Multidemensional arrays seem to not work within an echo.
$variable[one][two] = 'Hi There';
$variable[one][three] = 'This is a bug';
echo "
<html><body>
$variable[one][two]<br>
$variable[one][three]
</body></html>
";
results in
Array[two]
Array[three]
rather than the expected
Hi There
This is a bug
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13010&edit=1