0 votes
by (1.2k points)

1 Answer

0 votes
by (1.2k points)

<?php

$arr = array(1, 2, 3, 4, 5, 6);

$chunks = array_chunk($arr, 2);

print_r($chunks);

?>

...