|
array_chunkSplit an array into chunks Description
array array_chunk(array
$array , int $length , bool $preserve_keys = false )
Chunks an array into arrays with Parameters
Return Values
Returns a multidimensional numerically indexed array, starting with zero,
with each dimension containing Errors/Exceptions
If Changelog
Examples
Example #1 array_chunk example
The above example will output: Array ( [0] => Array ( [0] => a [1] => b ) [1] => Array ( [0] => c [1] => d ) [2] => Array ( [0] => e ) ) Array ( [0] => Array ( [0] => a [1] => b ) [1] => Array ( [2] => c [3] => d ) [2] => Array ( [4] => e ) ) See Also
|