Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

array_chunk()

3 tags 1 category

array_chunk() — Split an array into chunks.

array_chunk() — Chunks an array into arrays with length elements. The last chunk may contain less than length elements.

Inputs: array: The array to work on length: The size of each chunk preserve_keys: When set to true keys will be preserved. Default is false which will reindex the chunk numerically

Returns: Returns a multidimensional numerically indexed array, starting with zero, with each dimension containing length elements.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…