# Sentence List

Turn a simple array into a friendly comma delimited list with the word "and" before the last item.

```yaml
things:
  - batman
  - zombies
  - scrunchies
```

::tabs

::tab antlers
```antlers
I like {{ things | sentence_list }}.
```
::tab blade
```blade
I like {{ Statamic::modify($things)->sentenceList() }}.
```
::

```html
I like batman, zombies, and scrunchies.
```

By default, the "glue" is the word "and", and will be translated appropriately. But, you can change it with the first argument:

::tabs

::tab antlers
```antlers
I like {{ things | sentence_list('&') }}.
```
::tab blade
```blade
I like {{ Statamic::modify($things)->sentenceList('&') }}.
```
::

```html
I like batman, zombies, & scrunchies.
```

The second argument controls the oxford comma. Set that to 0 and it'll get removed:

::tabs

::tab antlers
```antlers
I like {{ things | sentence_list('and', 0) }}.
```
::tab blade
```blade
I like {{ Statamic::modify($things)->sentenceList(['and', 0]) }}.
```
::

```html
I like batman, zombies and scrunchies.
```
