Function __global->cms_shuffle_assoc
Definitions
sources/global3.php
- Randomly shuffle the order of an array's items while preserving its keys.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$array | array | Yes | No | required parameter | N/A | N/A | The array to be shuffled, passed by reference |
Returns
- Always returns true
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Randomly shuffle the order of an array's items while preserving its keys.
*
* @param array $array The array to be shuffled, passed by reference
* @return boolean Always returns true
*/
function cms_shuffle_assoc(array &$array) : bool
* Randomly shuffle the order of an array's items while preserving its keys.
*
* @param array $array The array to be shuffled, passed by reference
* @return boolean Always returns true
*/
function cms_shuffle_assoc(array &$array) : bool

