Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

twig foreach key value

{% for key, user in users %}
    <li>{{ key }}: {{ user.username }}</li>
{% endfor %}
 
PREVIOUS NEXT
Tagged: #twig #foreach #key
ADD COMMENT
Topic
Name
2+4 =