PHP随机生成身份证号

实用教程 3年前 (2018) Mgo
0
//生成随机身份证号 public function makeUserPaperNum() {
    $Region = array(130731,130732,130733,130822,130823,130824,130825,130826,130827,130828,130901,130902,130903,130921,130922,130923,130924,130925,130926,130927,210726,210727,210781,210782,210801,210802,210803,210804,210811,210881,210882,210901,210902,210903,210904,210905,210911,210921,210922,211001,211002,211003,211004,211005,211011,211021,211081,211101,211102,211103,211121,211122,211201,211202,211204,211221,211223,211224,211281,211282,211301,211302,211303,211321,211322,211324,211381,211382,211401,211402,211403,211404,211421,211422,211481,220101,220102,220103,220104,340826,340827,340828,340881,341001,341002,341003,341004,341021,341022,341023,341024,341101,341102,341103,341122,341124,341125,341126,341181,341182,341201,341202,341203,341204,341221,341222,341225,341226,341282,341301,341302,341321,341322,341323,341324,341501,341502,341503,341521,341522,341523,341524,341525,341601,341602,341621,341622,341623,341701,341821,341822,341823,341824,341825,341881,350101,350102,350103,350104,350105,350111,350121,350122,350123,350124,350125,350128,350181,350182,350201,350203,350205,350206,350211,350212,350213,350301,350302,350303,350304,350305,350322,350401,350402,350403,350421,350423,350424,350425,350426,350427,350428,350429,350430,350481,350501,350502,350503,350504,350505,350521,350524,350525,350526,350527,350581,430503,430511,430521,430522,430523,430524,430525,430527,430528,430529,430581,430601,430602,430603,430611,430621,430623,430624,430626,430722,430723,430724,430725,430726,430781,430801,430802,430811,430821,430822,430901,430902,430903,430921,430922,430923,430981,431001,431002,431003,431021,431022,431023,431024,431025,431026,431027,431028,431081,431101,431102,431103,431121,431129,431201,431202,431221,431222,431223,431224,431225,431226,431227,431228,431229,431230,431281,431301,431302,431321,431322,431381,431382,433101,433122,433123,433124,433125,433126,433127,433130,522626,522627,522628,522629,522630,522631,522632,522633,522634,522635,522636,522701,522702,522722,522723,522725,522726,522727,522728,522729,522730,522731,522732,530101,530102,530103,530111,530112,530113,542328,542329,542330,542331,542332,542333,542334,542335,542336,542337,542338,542421,542422,542423,542424,542425,542426,542427,542428,542429,542430,542521,542522,542523,542524,542525,542526,542527,542621,621026,621027,621101,621102,621121,621122,621123,621124,621125,621126,621201,621202,621221,621222,621223,621224,621225,621226,621227,621228,622901,622921,622922,622923,622924,623023,623024,623025,623026,623027,630101,630102,630103,630104,630105,630121,630122,630123,632121,632122,632123,654321,654322,654323,654324,654325,654326,659001,659002,659003);
    $y = array(1988,1989,1990,1991,1992,1993,1994,1995);
    $m = array('01','02','03','04','05','06','07','08','09','10','11','12');
    $d = array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28'); return $Region[rand(0,count($Region)-1)].$y[rand(0,7)].$m[rand(0,11)].$d[rand(0,27)].rand(1001,9999);
}

版权声明:Mgo 发表于 2018-06-03 9:23:01。
转载请注明:PHP随机生成身份证号 | 站长聚集地

暂无评论

暂无评论...