0 votes
by (1.2k points)

1 Answer

0 votes
by (1.2k points)

<?php

$array = range(1, 10);

$chunks = array_chunk($array, 3);

print_r($chunks);

?>

...