WireArray::slices()

Divide this WireArray into $qty slices and return array of them (each being another WireArray)

This is not destructive to the original WireArray as it returns new WireArray objects.

Usage

$array = $wireArray->slices(int $qty);

Arguments

NameType(s)Description
$qtyint

Number of slices

Return value

array

Array of WireArray objects


WireArray methods and properties

API reference based on ProcessWire core version 3.0.251