WireArray::last()
Returns the last item in the WireArray or boolean false if empty.
Note that this resets the internal WireArray pointer, which would affect other active iterations.
Example
$item = $items->last();Usage
$wire = $wireArray->last();Return value
Wire mixed bool
WireArray methods and properties
API reference based on ProcessWire core version 3.0.252