Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig for loop key

{% for key, user in users %}
	<li>{{ key }}: {{ user.username|e }}</li>
{% endfor %}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #loop #key
ADD COMMENT
Topic
Name
9+5 =