# $field->split()

Splits the field content into an array

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L602>

****

```php
$field->split($separator = ','): array
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$separator` | `mixed` | `','` | – |

## Return type

`array`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<h2>Tags</h2>
<ul>
  <?php foreach ($page->tags()->split(',') as $tag): ?>
  <li><?= $tag ?></li>
  <?php endforeach ?>
</ul>

```