<?
php
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;
}
转载于:https://www.cnblogs.com/lizhaoyao/p/4816372.html
相关资源:数据结构—成绩单生成器