涶嶅埗浠g爜 浠g爜濡备笅:
/*************
*@l - length of random string
*/
function generate_rand ($l){
$c= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
srand((double)microtime()*1000000);
for($i=0; $i<$l; $i++) {
$rand.= $c[rand()%strlen($c)];
}
return $rand;
}
杩欓噷鏄憳镊剼chain磣瀹Duo磣铓嶅彂宁卂殑鏂号珷銆曛洿澶氱殑鎶€宸у彲浠ュ嬬Key妦€?BR>退drop泦鄄勪穩鍗䷷竴涓 PHP
http://www.bkjia.com/PHPjc/322049.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322049.htmlTechArticle涶嶅埗浠g爜浠g爜濡备笅: /************* *@l - length of random string*/ function generate_rand( $l){ $c= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; srand((...