WireArray::index()

Returns a new WireArray of the item at the given index.

Unlike WireArray::get() this returns a new WireArray with a single item, or a blank WireArray if item doesn't exist. Applicable to numerically indexed WireArray only.

Usage

$items = $wireArray->index(int $num);

Arguments

NameType(s)Description
$numint

Index number

Return value

See Also


WireArray methods and properties

API reference based on ProcessWire core version 3.0.251