Function __global->array_chunk

Definitions

sources_custom/phpstub.php

  • Split an array into chunks.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$input array required parameter N/A N/A The array to work on
$size integer required parameter N/A N/A The size of each chunk
$preserve_keys boolean False N/A N/A When set to TRUE keys will be preserved. Default is FALSE which will reindex the chunk numerically.

Return

  • A multidimensional numerically indexed array, starting with zero, with each dimension containing size elements
  • Type: array
  • Set: N/A
  • Range: N/A