Query: str_shuffle
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STR_SHUFFLE(3) 1 STR_SHUFFLE(3) str_shuffle - Randomly shuffles a stringSYNOPSISstring str_shuffle (string $str)DESCRIPTIONstr_shuffle(3) shuffles a string. One permutation of all possible is created.PARAMETERSo $str - The input string.RETURN VALUESReturns the shuffled string.EXAMPLESExample #1 str_shuffle(3) example <?php $str = 'abcdef'; $shuffled = str_shuffle($str); // This will echo something like: bfdaec echo $shuffled; ?>SEE ALSOshuffle(3), rand(3). PHP Documentation Group STR_SHUFFLE(3)