|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-08 20:21 UTC] rasmus@php.net
[2012-06-08 20:21 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 20:00:01 2025 UTC |
Description: ------------ I found it pretty odd and surprisingly. When I assign a property to multi-dimentional array it doesn't setting the value correct. Test script: --------------- <?php $myArray = array(); $myArray['one'] = 1; $myArray['one']['two'] = 1; $myArray['one']['two']['three'] = 1; ?> Expected result: ---------------- Array ( [one] => Array ( [two] => Array ( [three] => 1 ) ) ) Actual result: -------------- Array ( [one] => 1 )