PHP str_shuffle() function
Example
Randomly scramble all characters in the string:
<?php echo str_shuffle("I love Shanghai"); ?>
Definition and Usage
str_shuffle() function randomly scrambles all characters in the string.
Syntax
str_shuffle(string)
Parameter | Description |
---|---|
string | Required. Specify the string to be scrambled. |
Technical Details
Return Value: | Return the scrambled string. |
PHP Version: | 4.3.0+ |