array_chunk
statamic/cms
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Split an array into chunks
<?php array_chunk
(array
$array
,
int $length
,
bool $preserve_keys
=
false
): array