PowerRC's Blog

Posted by:
PowerRC

码农,吃货,偶尔飙车和摄影,应该属于危险人物。

1,877

按洲分组国家地区标准代码

最近需要做个功能,就是把订单按洲来分组,就是亚洲非洲什么的
一般我们会用国家地区标准代码,详情请参考ISO标准
但是 ,洲和国家地区标准代码的关系表我可是没找到,只好自己一个个归类,繁琐啊,记下来,方便后来人


1
2
3
4
5
6
7
8
9
10
$this->_regionCoungry = array();
        $this->_regionCoungry['north_america']=array('GL','CA','PM','BM','MX','GT','GP','HM','PM','SH','US');
        $this->_regionCoungry['middle_america']=array('AG','AI','AN','BB','BM','BS','BZ','CR','CT','CU','DM','DO','GD','GT','HN','HT','JM','KN','KY','LC','MQ','MS','NI','PA','PR','PZ','SV','TC','TF','TT','VC','VG','VI','XB');
        $this->_regionCoungry['south_america']=array('AR','AW','BO','BR','CL','CO','EC','FK','GF','GY','PE','PY','SR','UY','VE');
        $this->_regionCoungry['middle_east']=array('AE','AF','AX','BH','CS','CY','IL','IQ','IR','JO','KW','LB','NT','OM','PO','PS','QA','SA','SY','TL','TR','YE');
        $this->_regionCoungry['europe']=array('AD','AL','AM','AT','AZ','BA','BE','BG','BY','CH','CZ','DE','DK','EE','ES','FI','FO','FR','FX','GB','GE','GG','GI','GR','HR','HU','IE','IM','IS','IT','JE','KG','KZ','LI','LT','LU','LV','MC','MD','ME','MF','MK','MT','NL','NO','PL','PT','RO','RS','RU','SE','SI','SK','SM','TJ','TM','UA','UZ','VA','YM','YU');
        $this->_regionCoungry['africa']=array('AO','BF','BI','BJ','BW','CD','CF','CG','CI','CM','CV','DJ','DZ','EG','EH','ER','ET','GA','GH','GM','GN','GQ','GW','KE','KM','LR','LS','LY','MA','MG','ML','MR','MU','MW','MZ','NA','NE','NG','RE','RW','SC','SD','SL','SN','SO','ST','SZ','TD','TG','TN','TZ','UG','ZA','ZM','ZR','ZW');
        $this->_regionCoungry['asia']=array('BD','BN','BT','CN','HK','ID','IN','JP','KH','KP','KR','LA','LK','MM','MN','MO','MY','NP','PH','PK','SG','TH','TW','VN','XA');
        $this->_regionCoungry['oceania']=array('AS','AU','CC','CK','CX','FJ','FM','GU','JT','KI','MH','MI','MP','MV','NC','NF','NR','NU','NZ','PF','PG','PW','SB','TK','TO','TP','TV','VU','WF','WK','WS','XC');
        $this->_regionCoungry['others']= array('AQ','BQ','BV','GS','IO','PN','SJ','UM','YT','ZZ');

版权申明

若文中未注明,则本文由 PowerRC 原创,转载请注明出处。

分享

发表评论

*

code

back up ↑