WireArray::shift()

Shift an element off the beginning of the WireArray and return it

Consistent with behavior of PHP's array_shift() method.

Usage

$wire = $wireArray->shift();

Return value

Wire mixed null

Item shifted off the beginning or NULL if empty.

See Also


WireArray methods and properties

API reference based on ProcessWire core version 3.0.251