/**
* 生成随机密码
* @author Leven <xp.develop@outlook.com>
* @return string
*/
function createRegPwd()
{
$str = '';
$strPol = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";
$max = strlen($strPol) - 1;
for ($i = 0; $i < 8; $i ++) {
$str .= $strPol{rand(0, $max)};
}
return $str;
}
随机密码
最新推荐文章于 2024-09-24 18:36:53 发布