Removes an array element.
The unset filter allows to delete an array element. The element index should be specified in the filter parameter.
The following example removes
{# Define some array #}
{%
set steps = {
'billing_info': 'Billing Information',
'shipping_info': 'Shipping Information',
'shipping_method': 'Shipping Method',
'payment_method': 'Payment Method',
'review': 'Order Review',
'pay': 'Pay'
}
%}
{# Remove the shipping_method element #}
{% set steps = steps|unset('shipping_method') %}