shuffle

The shuffle filter randomizes the order of elements in an array and returns the result.

The new array will have different array keys. The existing keys are removed and new ones are assigned while randomizing the values of the array.

{% set newValue = value|shuffle %}

< Back to the list of filters