- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
- Parse error: syntax error, unexpected '&' in /in/fqtum on line 8
Process exited with code 255.
<?php
$ary = array(5, 6, 2, 3, 1);
foreach($ary as &$a) {
echo $a;
}
// no reset after the first foreach on the a
&$a = 0;
foreach($ary as $a) {
echo $a;
}