Shuffle ViewHelper <f:shuffle>
Note
This reference is part of the documentation of Fluid Standalone. If you are working with Fluid in TYPO3 CMS, please refer to TYPO3's ViewHelper reference instead.
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