noncestr
//作用:产生随机字符串,不长于32位
private function createNoncestr($length = 32) {
$chars = "abcdefghijklmnopqrstuvwxyz0123456789";
$str = "";
for ($i = 0; $i < $length; $i++) {
$str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1);
}
return $str;
}
版权声明:本文为qq_17040587原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。