- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
- Parse error: syntax error, unexpected ';', expecting ')' in /in/MDjdl on line 9
Process exited with code 255.
<?php
$list = array(1,2,3,4,5,6);
$length = count($list);
$columns = 3;
for($column = 0; $column < $columns; $column++)
{
for($i = $column; $i < $length; $i=$i+$columns;) {
echo $list[$i];
}
echo '<br/>';
}