|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31365 the multiple dimension arrays are not diplayed correctly via echo
Submitted: 2004-12-31 11:33 UTC Modified: 2004-12-31 12:24 UTC
From: rm_dani at yahoo dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.0.3 OS: windows XP sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
35 - 30 = ?
Subscribe to this entry?

 [2004-12-31 11:33 UTC] rm_dani at yahoo dot com
just test the followings:

$bug[0][0] = "Bug in PHP4.0.4";
echo "Display the bug: $bug[0][0]";
echo "Display the bug: ". $bug[0][0];

I doubt that's a feature:D

Kind regards,

Reproduce code:
$bug[0][0] = "Bug in PHP4.0.4";
echo "Display the bug: $bug[0][0]";
echo "Display the bug: ". $bug[0][0];

Expected result:
Display the bug: Bug in PHP4.0.4
Display the bug: Bug in PHP4.0.4


the PHP4.0.4 string is due to the original version of PHP I was using and I've discovered it...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-31 11:40 UTC] rm_dani at yahoo dot com
I change the title of the bug cause it's happening for all the arrays with multiple dimensions
 [2004-12-31 12:24 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Sep 28 08:01:25 2023 UTC