---
title: "Last ViewHelper <f:last>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-last"
source: "ViewHelpers/Fluid/Last.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# Last ViewHelper `<f:last>` {#typo3fluid-fluid-last}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/Last.html) instead.

The LastViewHelper returns the last item of an array.

## Example {#example}

```php
<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
