亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

PHP產生隨機字符串函數

 更新時間:2006年12月06日 00:00:00   作者:  
<?php 

/**  
* 產生隨機字符串  
*  
* 產生一個指定長度的隨機字符串,并返回給用戶  
*  
* @access public  
* @param int $len 產生字符串的位數  
* @return string  
*/  
function randStr($len=6) {  
$chars='ABDEFGHJKLMNPQRSTVWXYabdefghijkmnpqrstvwxy23456789#%*'; // characters to build the password from  
mt_srand((double)microtime()*1000000*getmypid()); // seed the random number generater (must be done)  
$password='';  
while(strlen($password)<$len)  
$password.=substr($chars,(mt_rand()%strlen($chars)),1);  
return $password;  


?>

相關文章

最新評論