Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

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