随机数,验证码,生成生成随机数PHP代码
程序员文章站
2023-12-29 19:20:10
...
随机数,验证码 无 ?php/** *生成随机数 *@param */function randStr($m = 5) { $new_str = ''; $str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwsyz0123456789'; for ($i = 1; $i = $m; ++$i) { $new_str .=$str[mt_rand(0, 61)]; } return $new_
随机数,验证码