ID: 13010
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]