TPLix

No results for ""

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 ---

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}
Output:
abc
{$myArray|join:'-'}
Output:
a-b-c

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.