Wednesday, October 1, 2008

The str_shuffle() function

This function randomly shuffles the characters in the string.

Syntax: str_shuffle(string);

string – the input string

Example input:

echo str_shuffle("Hello");
echo "
";
echo str_shuffle("Hello");

Example output:

lHole
oHell

No comments: