- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
- Parse error: syntax error, unexpected '&' in /in/d7b87 on line 5
Process exited with code 255.
<?php
$arr = array(1,2,3,4,5,6,7,8,9);
foreach(&$arr as $key=>$value)
{
unset($arr[$key + 1]);
echo $value . PHP_EOL;
}
?>