array_chunk()
function array_chunk(array $array, int $length): array
Splits an array into chunks of the given size.
Parameters:
$array(array)$length(int)
Returns: array
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_chunk is implemented in the compiler, see the internals page.