llms_shuffle_assoc( array $array )
Shuffles an array while keeping the array indices
Contents
Parameters Parameters
- $array
-
(array) (Required)
Return Return
(bool)
Source Source
File: includes/llms.template.functions.php
function llms_shuffle_assoc( &$array ) { $keys = array_keys( $array ); shuffle( $keys ); foreach ( $keys as $key ) { $new[ $key ] = $array[ $key ]; } $array = $new; return true; }
Expand full source code Collapse full source code View on GitHub