|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-16 15:21 UTC] tony2001@php.net
[2005-12-16 15:26 UTC] ait-ali dot mohamed at laposte dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
Description: ------------ It seems to be an bas assignation for the array. The engine begins to increment the variable, before assign in the array's key. Reproduce code: --------------- <? $table = array(); $i = 0; $table [$i][0] = $i++; print_r($table); ?> Expected result: ---------------- Array ( [0] => Array ( [0] => 0 ) ) Actual result: -------------- Array ( [1] => Array ( [0] => 0 ) )