// 获取随机的字符串 function get_rand_char($length = 6) { $str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; $strLength = 61; for($i = 0; $i < $length; $i ++) { $res .= $str [rand ( 0, $strLength )]; } return $res; }
// 获取随机的字符串 function get_rand_char($length = 6) { $str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; $strLength = 61; for($i = 0; $i < $length; $i ++) { $res .= $str [rand ( 0, $strLength )]; } return $res; }