Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

twig column

{% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}

{% set fruits = items|column('fruit') %}

{# fruits now contains ['apple', 'orange'] #}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #column
ADD COMMENT
Topic
Name
4+9 =