blob: 586094717203ca43b08da819d7e61b0337162d2e [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001``keys``
2========
3
4The ``keys`` filter returns the keys of an array. It is useful when you want to
5iterate over the keys of an array:
6
7.. code-block:: twig
8
9 {% for key in array|keys %}
10 ...
11 {% endfor %}