Randomly shuffle all characters in a string:
<?phpecho str_shuffle("Hello World");?>The str_shuffle() function randomly shuffles all characters in a string.
str_shuffle( string )
| parameter | describe |
|---|---|
| string | Required. Specifies the string to be scrambled. |
| Return value: | Returns the scrambled string. |
|---|---|
| PHP version: | 4.3.0+ |