first
Set the internal pointer of an array to its first element
Example
1
{{ $a | first }} => value
Input
Type | Parameter | Description | Required |
---|---|---|---|
array | input | The array to retrieve the first element from. Comes before the | sign. | Required |
Output
Type | Description |
---|---|
mixed | Returns the value of the first array element, or false if the array is empty. |