- Output for 5.4.0 - 5.4.30
- Parse error: syntax error, unexpected '{' in /in/P5O1r on line 9
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected '[' in /in/P5O1r on line 3
Process exited with code 255.
<?php
$array = [[1,2],[3,4]];
//foreach($array as list($x, $y)) {
// echo $x . ' : ' . $y . PHP_EOL;
//}
while(list($x, $y) = each($array) { echo $x . ' : ' . $y . PHP_EOL; }