标签:
php随机生成6位字符串:
$str = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz‘;
$max = strlen($str)-1;
for ($i=0; $i <6 ; $i++){
$invite1.=$str[rand(0,$max)];
}
标签:
原文地址:http://www.cnblogs.com/shaohuixia/p/5493126.html