1 2 3 4 5 6 7 8 9 10 11 12 13
--TEST-- foreach into array --FILE-- <?php $a = array(0,1); $b[0]=2; foreach($a as $b[0]) { echo $b[0]."\n"; } ?> --EXPECT-- 0 1