# Explode

Breaks a string into an array of strings split on a given delimiter.

```yaml
places: Scotland, England, Switzerland, Italy
```

::tabs

::tab antlers
```antlers
{{ places | explode(',') | ul }}
```
::tab blade
```blade
{!! Statamic::modify($places)->explode(',')->ul() !!}
```
::

```html
<ul>
  <li>Scotland</li>
  <li>England</li>
  <li>Switzerland</li>
  <li>Italy</li>
</ul>
```

To limit the number of splits, pass the limit as the second argument:

::tabs

::tab antlers
```antlers
{{ places | explode(',', 2) | ul }}
```
::tab blade
```blade
{!! Statamic::modify($places)->explode(',', 2)->ul() !!}
```
::

```html
<ul>
  <li>Scotland</li>
  <li>England, Switzerland, Italy</li>
</ul>
```