Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig filter

{% set sizes = [34, 36, 38, 40, 42] %}

{{ sizes|filter(v => v > 38)|join(', ') }}
{# output 40, 42 #}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #filter
ADD COMMENT
Topic
Name
2+7 =