values
The values filter gets just the values of an array without any specific keys.
{% set stuff = {'foo': 'Foo', 'bar': 'Bar'} %}
{% set myValues = stuff|values %}
{# myValues now contains the following array: ['Foo', 'Bar'] #}
The values filter gets just the values of an array without any specific keys.
{% set stuff = {'foo': 'Foo', 'bar': 'Bar'} %}
{% set myValues = stuff|values %}
{# myValues now contains the following array: ['Foo', 'Bar'] #}