function yzImgNumRand($lenth){
mt_srand((double)microtime() * 1000000);
$Str[0] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$Str[1] = "abcdefghijklmnopqrstuvwxyz";
$Str[2] = "01234567891234567890123456";
for($i=0;$i<$lenth;$i++){
$randval.= $Str[rand(0,2)][rand(0,25)];
}
return $randval;
}
您可能感兴趣的文章: