|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13010 echoed multipdimensional arrays
Submitted: 2001-08-28 20:34 UTC Modified: 2001-08-28 20:43 UTC
From: dcaylor at maf dot org Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.0.4pl1 OS: Linux 7.1
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:
19 + 32 = ?
Subscribe to this entry?

 [2001-08-28 20:34 UTC] dcaylor at maf dot org
Multidemensional arrays seem to not work within an echo.

$variable[one][two] = 'Hi There';
$variable[one][three] = 'This is a bug';

echo "

results in 
rather than the expected
  Hi There
  This is a bug


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-28 20:43 UTC]
Multidimensional arrays need to be enclosed in curly braces to be interpolated in that manner.

echo "This is not a bug.  {$array[one][two]}";

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 22:01:26 2019 UTC