---
title: "Split ViewHelper <f:split>"
manual: "Fluid ViewHelper Reference"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-split@14.3"
source: "Global/Split.rst"
rendered: "2026-10-01T16:43:06+00:00"
---

# Split ViewHelper `<f:split>` {#typo3fluid-fluid-split}

The SplitViewHelper splits a string by the specified separator, which
results in an array. The number of values in the resulting array can
be limited with the limit parameter, which results in an array where
the last item contains the remaining unsplit string.

This ViewHelper mimicks PHP's `explode()` function.

The following examples store the result in a variable because an array cannot
be outputted directly in a template.

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

## Arguments of the `<f:split>` ViewHelper {#typo3fluid-fluid-split-arguments}

-   **limit**

    -   *Type:* int
    -   *Default:* 9223372036854775807

    If limit is positive, a maximum of $limit items will be returned. If limit is negative, all items except for the last $limit items will be returned. 0 will be treated as 1.

-   **separator**

    -   *Type:* string
    -   *Required:* true

    Separator string to explode with

-   **value**

    -   *Type:* string

    The string to explode
