产生数字,大小写字母组成的随机数 $str=array_merge(rang('a','z'),range('a','z'),range('A','Z')); shuffle($str); $str= implode('',array_slice($str,0,8));