Skip to main content

Documentation Index

Fetch the complete documentation index at: https://reportana.dev/llms.txt

Use this file to discover all available pages before exploring further.

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:
{% set text = 'Hello World' %}
{% set words = text|split(' ') %}
{{ words[0] }} {# Returns "Hello" #}
{{ words[1] }} {# Returns "World" #}

Output Example of the Code

Result of `split` Filter