Query: shuffle
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SHUFFLE(3) 1 SHUFFLE(3) shuffle - Shuffle an arraySYNOPSISbool shuffle (array &$array)DESCRIPTIONThis function shuffles (randomizes the order of the elements in) an array.PARAMETERSo $array - The array.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 shuffle(3) example <?php $numbers = range(1, 20); shuffle($numbers); foreach ($numbers as $number) { echo "$number "; } ?>NOTESNote This function assigns new keys to the elements in $array. It will remove any existing keys that may have been assigned, rather than just reordering the keys.SEE ALSOarray_rand(3), The comparison of array sorting functions. PHP Documentation Group SHUFFLE(3)
Related Man Pages |
---|
rsort(3) - php |
arsort(3) - php |
array_key_exists(3) - php |
array_rand(3) - php |
uksort(3) - php |
Similar Topics in the Unix Linux Community |
---|
Don't Lose Your New Shuffle! |
shuffle pack of words in line |
Syncing music to iPod shuffle |
Random shuffle of lines of a TXT file |
Randomized shuffle words on each line |