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

# Join ViewHelper `<f:join>` {#typo3fluid-fluid-join}

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

The JoinViewHelper combines elements from an array into a single string.
You can specify both a general separator and a special one for the last
element, which serves as the delimiter between the elements.

## Examples {#examples}

### Simple join {#simple-join}

```php
<f:join value="{0: '1', 1: '2', 2: '3'}" />

```

```text
123
```

### Join with separator {#join-with-separator}

```php
<f:join value="{0: '1', 1: '2', 2: '3'}" separator=", " />

```

```text
1, 2, 3
```

### Join with separator, and special one for the last {#join-with-separator-and-special-one-for-the-last}

```php
<f:join value="{0: '1', 1: '2', 2: '3'}" separator=", " separatorLast=" and " />

```

```text
1, 2 and 3
```

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

**Arguments**

The following arguments are available for the join ViewHelper:

-   **separator**

    -   *Type:* string
    -   *Default:* ''

    The separator

-   **separatorLast**

    -   *Type:* string

    The separator for the last pair.

-   **value**

    -   *Type:* array

    An array
