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