PHP.nl

str_shuffle

str_shuffle

Randomly shuffles a string

string **str_shuffle** string $string
shuffles a string.  One permutation

of all possible is created. str_shuffle

stringThe input string.

Returns the shuffled string.

Voorbeeld: example

<?php
$str = 'abcdef';
$shuffled = str_shuffle($str);

// This will echo something like: bfdaec
echo $shuffled;
?>

Random\Randomizer::shuffleBytes``Random\Randomizer::shuffleArray