|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-06 02:48 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 03:00:01 2025 UTC |
Description: ------------ think this...is bug or not Reproduce code: --------------- $a = array(1,2,3); $b = array(3,2,1); foreach($a as $k => &$v); foreach($b as $k => $v); print_r($a); print_r($b); Expected result: ---------------- Array ( [0] => 1 [1] => 2 [2] => 3 ) Array ( [0] => 3 [1] => 2 [2] => 1 ) Actual result: -------------- Array ( [0] => 1 [1] => 2 [2] => 1 ) Array ( [0] => 3 [1] => 2 [2] => 1 )