/*
$numLen 卡号长度
$pwdLen 密码长度
$numGro 产生的账号密码组数
*/
function cnumpwd($numLen,$pwdLen,$numGro){
$cards=array();
for($i=0;$i<$numGro;$i++) {
$tempNumStr=substr(md5(microtime()), 0, $numLen);
$tempPwdStr=substr(md5(microtime()), 0, $pwdLen);
$cards[$i]['num']=$tempNumStr;
$cards[$i]['pwd']=$tempPwdStr;
}
return $cards;
}
如果需要纯数字的将字符串转化成8进制的在加密