str_shuffle() 函数打乱一个字符串,使用任何一种可能的排序方案。
<?php
$str = 'hello world ';
echo str_shuffle($str);
?>
结果:l lwdhelro o