twig get array key name
snippet in php

twig get array key name

user2329

{% for key, value in array %}
    {{ key }} - {{ value }}
{% endfor %}