php生成随机数
2021-04-04 03:24
阅读:422
标签:substr func for turn strlen 生成 length bcd and function createNonceStr($length = 30) { php生成随机数 标签:substr func for turn strlen 生成 length bcd and 原文地址:https://www.cnblogs.com/zwvs/p/12530649.html
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$str = "";
for ($i = 0; $i $str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1);
}
return $str;
}
上一篇:html5
评论
亲,登录后才可以留言!