> ## Documentation Index
> Fetch the complete documentation index at: https://reportana.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# split

### Introduction

The `split` filter is used to divide a string into smaller parts based on a specific delimiter. It returns an array containing the parts of the original string, which is useful for manipulating and accessing string subsections.

### Example of Use

Example of how to use the `split` filter to split a string into words:

```twig theme={null}
{% set text = 'Hello World' %}
{% set words = text|split(' ') %}
{{ words[0] }} {# Returns "Hello" #}
{{ words[1] }} {# Returns "World" #}
```

### Output Example of the Code

<img src="https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/split-en.png?fit=max&auto=format&n=rrUbVfAgCraOJwnY&q=85&s=5e20ac576e9dbae9370d35fe5fdbb15a" alt="Result of `split` Filter" width="899" height="285" data-path="split-en.png" />
