First ViewHelper <f:first>

The FirstViewHelper returns the first item of an array.

Example

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

Source code

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

Arguments

The following arguments are available for <f:first>:

Name display Type Default
mixed
value
Type
mixed