Table of Contents
Filter: keys
:
- no args
The keys
filter returns the keys of an array.
It is useful when you want to iterate over the keys of an array:
{% for key in array|keys %}
...
{% endfor %}
Filter: keys
:
The keys
filter returns the keys of an array.
It is useful when you want to iterate over the keys of an array:
{% for key in array|keys %}
...
{% endfor %}