Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

twig merge

{% set values = [1, 2] %}

{% set values = values|merge(['apple', 'orange']) %}

{# values now contains [1, 2, 'apple', 'orange'] #}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #merge
ADD COMMENT
Topic
Name
9+8 =