Randomly shuffle all characters of a string:
<?php
echo str_shuffle("Hello World");
?>
Try it Yourself »
The str_shuffle() function randomly shuffles all the characters of a string.
str_shuffle(
string)
Parameter | Description |
---|---|
string | Required. Specifies the string to shuffle |
Return Value: | Returns the shuffled string |
---|---|
PHP Version: | 4.3.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!