PHP Classes

File: libs/Twig/doc/filters/join.rst

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/doc/filters/join.rst   Download  
File: libs/Twig/doc/filters/join.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 429 bytes
 

Contents

Class file image Download
``join`` ======== The ``join`` filter returns a string which is the concatenation of the items of a sequence: .. code-block:: jinja {{ [1, 2, 3]|join }} {# returns 123 #} The separator between elements is an empty string per default, but you can define it with the optional first parameter: .. code-block:: jinja {{ [1, 2, 3]|join('|') }} {# outputs 1|2|3 #} Arguments --------- * ``glue``: The separator