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

# First ViewHelper `<f:first>` {#typo3fluid-fluid-first}

> [!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/First.html) instead.

The FirstViewHelper returns the first item of an array.

## Example {#example}

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

```

```text
first
```

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

**Arguments**

The following arguments are available for the first ViewHelper:

-   **value**

    -   *Type:* array
