mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 07:37:43 +00:00
12 lines
219 B
ReStructuredText
12 lines
219 B
ReStructuredText
``keys``
|
|
========
|
|
|
|
The ``keys`` filter returns the keys of an array. It is useful when you want to
|
|
iterate over the keys of an array:
|
|
|
|
.. code-block:: jinja
|
|
|
|
{% for key in array|keys %}
|
|
...
|
|
{% endfor %}
|