元素模板为您解答
function createRandomStr($length){ $str = array_merge(range('a','z'),range('A','Z')); shuffle($str); $str = implode('',array_slice($str,0,$length)); return $str; } echo createRandomStr(6);
function createRandomStr($length){ $str = array_merge(range('a','z'),range('A','Z')); shuffle($str); $str = implode('',array_slice($str,0,$length)); return $str; } echo createRandomStr(6);
本文来源:php随机生成6位字母密码
本文地址:https://www.ys720.com/jiaocheng/4606.html
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!