Skip to content

Wire array 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