function randstr($length = 20, $chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
{
$len = strlen($chars);
$ret = '';
for ($i = 0; $i < $length; $i++) {
$ret .= $chars[random_int(0, $len - 1)];
}
return $ret;
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询