PHP Classes

File: Library/vendor/twig/twig/doc/filters/join.rst

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/doc/filters/join.rst   Download  
File: Library/vendor/twig/twig/doc/filters/join.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 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