Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

List Modifier

Turn a simple array into a comma delimited list with no comma after the last item.

things:
- batman
- zombies
- scrunchies
{{ things | list }}
{{ Statamic::modify($things)->list() }}
batman, zombies, scrunchies