PHP function

Str_shuffle( ) function in PHP

The PHP str_shuffle( ) function change the position of each character in the string. You can also say shuffle the character in the string.
For example you have string "Majeed'
Then the following code shuffle each character.


<?PHP

$name = 'Majid';

$name = str_shuffle($name);

echo $name;

?>

This may be print "djMai" and next time when you run again this script may be return some thing else because str_shuffle( ) randomize the all the character every time and output new result.