str_shuffle() 函数打乱一个字符串,使用任何一种可能的排序方案。

<?php

$str = 'hello world ';

echo str_shuffle($str);

?>


结果:l lwdhelro o


你要保守你心,胜过保守一切。

作者:刘俊涛的博客​​