标签: php
朋友发布了这个PHP代码段。
<? $a=array(1,2,3); foreach ($a as &$item){} foreach ($a as $item){} print_r($a);
输出为1,2,2 - 为什么?
1,2,2