Last ViewHelper <f:last>

The LastViewHelper returns the last item of an array.

Example

<f:last value="{0: 'first', 1: 'second'}" />
Copied!
second
Copied!

Source code

Go to the source code of this ViewHelper: LastViewHelper.php (GitHub).

Arguments

The following arguments are available for the last ViewHelper:

value
Type
array