<?php $l = [1, 2, 3, 4, 5, 6]; foreach(array_chunk($l, 2) as $x) { echo $x[0], ' ', $x[1], PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.