Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig string is in array

{% if color in ['red', 'blue', 'orange'] %}
    ...
{% endif %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #twig #string #array
ADD COMMENT
Topic
Name
5+1 =