|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 " <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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 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]}";