array to string twig code example Example: twig classes array to string {{ [1, 2, 3]|join('|') }} {# outputs 1|2|3 #}