Pchp.Library.Arrays.Chunk C# (CSharp) Method

Chunk() static private method

Splits an array into chunks.
static private Chunk ( PhpArray array, int size, bool preserveKeys = false ) : PhpArray
array Pchp.Core.PhpArray The array to be split.
size int The number of items in each chunk (except for the last one where can be lesser items).
preserveKeys bool Whether to preserve keys in chunks.
return Pchp.Core.PhpArray
        internal static PhpArray Chunk(PhpArray array, int size, bool preserveKeys = false)
        {
            return ChunkInternal(array, size, preserveKeys, false);
        }