Join
1 min read
Jun 2, 2026
---
title: join and
autoseo:
enabled: true
theme: learn2
child_type: default
admin:
children_display_order: collection
visible: true
---
Output:
Output:
join — Returns a string containing all the element of the given array with the separator string between each.
Basic Usage:For $myArray populated with ['a','b','c'], the following will return the string abc.
{$myArray|join}
abc
{$myArray|join:'-'}
a-b-c
Leave a Comment