---
title: "Last ViewHelper <f:last>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-last@13.4"
source: "Global/Last.rst"
modified: "2026-09-15T08:12:09+00:00"
---

# Last ViewHelper `<f:last>`

The LastViewHelper returns the last item of an array.

## Example

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

```

```text
second
```

Go to the source code of this ViewHelper: [LastViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/LastViewHelper.php).

**Arguments**

The following arguments are available for the last ViewHelper:

-   **value**

    -   *Type:* array
