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