PHP str_shuffle() Function

The str_shuffle() function randomly shuffles all the characters of a string.

string str_shuffle ( string $str )

str_shuffle() shuffles a string. One permutation of all possible is created.

Example -

ParameterDescription
stringRequired. Specifies the string to shuffle

Returns the shuffled string.