Shuffle ViewHelper <f:shuffle>
The ShuffleViewHelper shuffles elements from an array.
This ViewHelper uses PHP's shuffle
function.
Example
<f:shuffle value="{0: '1', 1: '2', 2: '3'}" />
Copied!
{0: '2', 1: '3', 2: '1'}
Copied!
Go to the source code of this ViewHelper: ShuffleViewHelper.php (GitHub).
Arguments
The following arguments are available for the shuffle ViewHelper:
value
-
- Type
- array
An array