PHP ISO 3166-1 alpha-2

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP ISO 3166-1 alpha-2相关的知识,希望对你有一定的参考价值。

$cc = array (
  'AD' => array (
    'name' => 'Andorra',
    'domain' => '.ad',
  ),
  'AE' => array (
    'name' => 'United Arab Emirates',
    'domain' => '.ae',
  ),
  'AF' => array (
    'name' => 'Afghanistan',
    'domain' => '.af',
  ),
  'AG' => array (
    'name' => 'Antigua and Barbuda',
    'domain' => '.ag',
  ),
  'AI' => array (
    'name' => 'Anguilla',
    'domain' => '.ai',
  ),
  'AL' => array (
    'name' => 'Albania',
    'domain' => '.al',
  ),
  'AM' => array (
    'name' => 'Armenia',
    'domain' => '.am',
  ),
  'AO' => array (
    'name' => 'Angola',
    'domain' => '.ao',
  ),
  'AQ' => array (
    'name' => 'Antarctica',
    'domain' => '.aq',
  ),
  'AR' => array (
    'name' => 'Argentina',
    'domain' => '.ar',
  ),
  'AS' => array (
    'name' => 'American Samoa',
    'domain' => '.as',
  ),
  'AT' => array (
    'name' => 'Austria',
    'domain' => '.at',
  ),
  'AU' => array (
    'name' => 'Australia',
    'domain' => '.au',
  ),
  'AW' => array (
    'name' => 'Aruba',
    'domain' => '.aw',
  ),
  'AX' => array (
    'name' => '�land Islands',
    'domain' => '.ax',
  ),
  'AZ' => array (
    'name' => 'Azerbaijan',
    'domain' => '.az',
  ),
  'BA' => array (
    'name' => 'Bosnia and Herzegovina',
    'domain' => '.ba',
  ),
  'BB' => array (
    'name' => 'Barbados',
    'domain' => '.bb',
  ),
  'BD' => array (
    'name' => 'Bangladesh',
    'domain' => '.bd',
  ),
  'BE' => array (
    'name' => 'Belgium',
    'domain' => '.be',
  ),
  'BF' => array (
    'name' => 'Burkina Faso',
    'domain' => '.bf',
  ),
  'BG' => array (
    'name' => 'Bulgaria',
    'domain' => '.bg',
  ),
  'BH' => array (
    'name' => 'Bahrain',
    'domain' => '.bh',
  ),
  'BI' => array (
    'name' => 'Burundi',
    'domain' => '.bi',
  ),
  'BJ' => array (
    'name' => 'Benin',
    'domain' => '.bj',
  ),
  'BL' => array (
    'name' => 'Saint Barthélemy',
    'domain' => '.bl',
  ),
  'BM' => array (
    'name' => 'Bermuda',
    'domain' => '.bm',
  ),
  'BN' => array (
    'name' => 'Brunei Darussalam',
    'domain' => '.bn',
  ),
  'BO' => array (
    'name' => 'Bolivia, Plurinational State of',
    'domain' => '.bo',
  ),
  'BQ' => array (
    'name' => 'Bonaire, Sint Eustatius and Saba',
    'domain' => '.bq',
  ),
  'BR' => array (
    'name' => 'Brazil',
    'domain' => '.br',
  ),
  'BS' => array (
    'name' => 'Bahamas',
    'domain' => '.bs',
  ),
  'BT' => array (
    'name' => 'Bhutan',
    'domain' => '.bt',
  ),
  'BV' => array (
    'name' => 'Bouvet Island',
    'domain' => '.bv',
  ),
  'BW' => array (
    'name' => 'Botswana',
    'domain' => '.bw',
  ),
  'BY' => array (
    'name' => 'Belarus',
    'domain' => '.by',
  ),
  'BZ' => array (
    'name' => 'Belize',
    'domain' => '.bz',
  ),
  'CA' => array (
    'name' => 'Canada',
    'domain' => '.ca',
  ),
  'CC' => array (
    'name' => 'Cocos (Keeling) Islands',
    'domain' => '.cc',
  ),
  'CD' => array (
    'name' => 'Congo, the Democratic Republic of the',
    'domain' => '.cd',
  ),
  'CF' => array (
    'name' => 'Central African Republic',
    'domain' => '.cf',
  ),
  'CG' => array (
    'name' => 'Congo',
    'domain' => '.cg',
  ),
  'CH' => array (
    'name' => 'Switzerland',
    'domain' => '.ch',
  ),
  'CI' => array (
    'name' => 'Côte d\'Ivoire',
    'domain' => '.ci',
  ),
  'CK' => array (
    'name' => 'Cook Islands',
    'domain' => '.ck',
  ),
  'CL' => array (
    'name' => 'Chile',
    'domain' => '.cl',
  ),
  'CM' => array (
    'name' => 'Cameroon',
    'domain' => '.cm',
  ),
  'CN' => array (
    'name' => 'China',
    'domain' => '.cn',
  ),
  'CO' => array (
    'name' => 'Colombia',
    'domain' => '.co',
  ),
  'CR' => array (
    'name' => 'Costa Rica',
    'domain' => '.cr',
  ),
  'CU' => array (
    'name' => 'Cuba',
    'domain' => '.cu',
  ),
  'CV' => array (
    'name' => 'Cape Verde',
    'domain' => '.cv',
  ),
  'CW' => array (
    'name' => 'Curaçao',
    'domain' => '.cw',
  ),
  'CX' => array (
    'name' => 'Christmas Island',
    'domain' => '.cx',
  ),
  'CY' => array (
    'name' => 'Cyprus',
    'domain' => '.cy',
  ),
  'CZ' => array (
    'name' => 'Czech Republic',
    'domain' => '.cz',
  ),
  'DE' => array (
    'name' => 'Germany',
    'domain' => '.de',
  ),
  'DJ' => array (
    'name' => 'Djibouti',
    'domain' => '.dj',
  ),
  'DK' => array (
    'name' => 'Denmark',
    'domain' => '.dk',
  ),
  'DM' => array (
    'name' => 'Dominica',
    'domain' => '.dm',
  ),
  'DO' => array (
    'name' => 'Dominican Republic',
    'domain' => '.do',
  ),
  'DZ' => array (
    'name' => 'Algeria',
    'domain' => '.dz',
  ),
  'EC' => array (
    'name' => 'Ecuador',
    'domain' => '.ec',
  ),
  'EE' => array (
    'name' => 'Estonia',
    'domain' => '.ee',
  ),
  'EG' => array (
    'name' => 'Egypt',
    'domain' => '.eg',
  ),
  'EH' => array (
    'name' => 'Western Sahara',
    'domain' => '.eh',
  ),
  'ER' => array (
    'name' => 'Eritrea',
    'domain' => '.er',
  ),
  'ES' => array (
    'name' => 'Spain',
    'domain' => '.es',
  ),
  'ET' => array (
    'name' => 'Ethiopia',
    'domain' => '.et',
  ),
  'FI' => array (
    'name' => 'Finland',
    'domain' => '.fi',
  ),
  'FJ' => array (
    'name' => 'Fiji',
    'domain' => '.fj',
  ),
  'FK' => array (
    'name' => 'Falkland Islands (Malvinas)',
    'domain' => '.fk',
  ),
  'FM' => array (
    'name' => 'Micronesia, Federated States of',
    'domain' => '.fm',
  ),
  'FO' => array (
    'name' => 'Faroe Islands',
    'domain' => '.fo',
  ),
  'FR' => array (
    'name' => 'France',
    'domain' => '.fr',
  ),
  'GA' => array (
    'name' => 'Gabon',
    'domain' => '.ga',
  ),
  'GB' => array (
    'name' => 'United Kingdom',
    'domain' => '.gb',
  ),
  'GD' => array (
    'name' => 'Grenada',
    'domain' => '.gd',
  ),
  'GE' => array (
    'name' => 'Georgia',
    'domain' => '.ge',
  ),
  'GF' => array (
    'name' => 'French Guiana',
    'domain' => '.gf',
  ),
  'GG' => array (
    'name' => 'Guernsey',
    'domain' => '.gg',
  ),
  'GH' => array (
    'name' => 'Ghana',
    'domain' => '.gh',
  ),
  'GI' => array (
    'name' => 'Gibraltar',
    'domain' => '.gi',
  ),
  'GL' => array (
    'name' => 'Greenland',
    'domain' => '.gl',
  ),
  'GM' => array (
    'name' => 'Gambia',
    'domain' => '.gm',
  ),
  'GN' => array (
    'name' => 'Guinea',
    'domain' => '.gn',
  ),
  'GP' => array (
    'name' => 'Guadeloupe',
    'domain' => '.gp',
  ),
  'GQ' => array (
    'name' => 'Equatorial Guinea',
    'domain' => '.gq',
  ),
  'GR' => array (
    'name' => 'Greece',
    'domain' => '.gr',
  ),
  'GS' => array (
    'name' => 'South Georgia and the South Sandwich Islands',
    'domain' => '.gs',
  ),
  'GT' => array (
    'name' => 'Guatemala',
    'domain' => '.gt',
  ),
  'GU' => array (
    'name' => 'Guam',
    'domain' => '.gu',
  ),
  'GW' => array (
    'name' => 'Guinea-Bissau',
    'domain' => '.gw',
  ),
  'GY' => array (
    'name' => 'Guyana',
    'domain' => '.gy',
  ),
  'HK' => array (
    'name' => 'Hong Kong',
    'domain' => '.hk',
  ),
  'HM' => array (
    'name' => 'Heard Island and McDonald Islands',
    'domain' => '.hm',
  ),
  'HN' => array (
    'name' => 'Honduras',
    'domain' => '.hn',
  ),
  'HR' => array (
    'name' => 'Croatia',
    'domain' => '.hr',
  ),
  'HT' => array (
    'name' => 'Haiti',
    'domain' => '.ht',
  ),
  'HU' => array (
    'name' => 'Hungary',
    'domain' => '.hu',
  ),
  'ID' => array (
    'name' => 'Indonesia',
    'domain' => '.id',
  ),
  'IE' => array (
    'name' => 'Ireland',
    'domain' => '.ie',
  ),
  'IL' => array (
    'name' => 'Israel',
    'domain' => '.il',
  ),
  'IM' => array (
    'name' => 'Isle of Man',
    'domain' => '.im',
  ),
  'IN' => array (
    'name' => 'India',
    'domain' => '.in',
  ),
  'IO' => array (
    'name' => 'British Indian Ocean Territory',
    'domain' => '.io',
  ),
  'IQ' => array (
    'name' => 'Iraq',
    'domain' => '.iq',
  ),
  'IR' => array (
    'name' => 'Iran, Islamic Republic of',
    'domain' => '.ir',
  ),
  'IS' => array (
    'name' => 'Iceland',
    'domain' => '.is',
  ),
  'IT' => array (
    'name' => 'Italy',
    'domain' => '.it',
  ),
  'JE' => array (
    'name' => 'Jersey',
    'domain' => '.je',
  ),
  'JM' => array (
    'name' => 'Jamaica',
    'domain' => '.jm',
  ),
  'JO' => array (
    'name' => 'Jordan',
    'domain' => '.jo',
  ),
  'JP' => array (
    'name' => 'Japan',
    'domain' => '.jp',
  ),
  'KE' => array (
    'name' => 'Kenya',
    'domain' => '.ke',
  ),
  'KG' => array (
    'name' => 'Kyrgyzstan',
    'domain' => '.kg',
  ),
  'KH' => array (
    'name' => 'Cambodia',
    'domain' => '.kh',
  ),
  'KI' => array (
    'name' => 'Kiribati',
    'domain' => '.ki',
  ),
  'KM' => array (
    'name' => 'Comoros',
    'domain' => '.km',
  ),
  'KN' => array (
    'name' => 'Saint Kitts and Nevis',
    'domain' => '.kn',
  ),
  'KP' => array (
    'name' => 'North Korea|Korea, Democratic People\'s Republic of',
    'domain' => '.kp',
  ),
  'KR' => array (
    'name' => 'South Korea|Korea, Republic of',
    'domain' => '.kr',
  ),
  'KW' => array (
    'name' => 'Kuwait',
    'domain' => '.kw',
  ),
  'KY' => array (
    'name' => 'Cayman Islands',
    'domain' => '.ky',
  ),
  'KZ' => array (
    'name' => 'Kazakhstan',
    'domain' => '.kz',
  ),
  'LA' => array (
    'name' => 'Lao People\'s Democratic Republic',
    'domain' => '.la',
  ),
  'LB' => array (
    'name' => 'Lebanon',
    'domain' => '.lb',
  ),
  'LC' => array (
    'name' => 'Saint Lucia',
    'domain' => '.lc',
  ),
  'LI' => array (
    'name' => 'Liechtenstein',
    'domain' => '.li',
  ),
  'LK' => array (
    'name' => 'Sri Lanka',
    'domain' => '.lk',
  ),
  'LR' => array (
    'name' => 'Liberia',
    'domain' => '.lr',
  ),
  'LS' => array (
    'name' => 'Lesotho',
    'domain' => '.ls',
  ),
  'LT' => array (
    'name' => 'Lithuania',
    'domain' => '.lt',
  ),
  'LU' => array (
    'name' => 'Luxembourg',
    'domain' => '.lu',
  ),
  'LV' => array (
    'name' => 'Latvia',
    'domain' => '.lv',
  ),
  'LY' => array (
    'name' => 'Libyan Arab Jamahiriya',
    'domain' => '.ly',
  ),
  'MA' => array (
    'name' => 'Morocco',
    'domain' => '.ma',
  ),
  'MC' => array (
    'name' => 'Monaco',
    'domain' => '.mc',
  ),
  'MD' => array (
    'name' => 'Moldova, Republic of',
    'domain' => '.md',
  ),
  'ME' => array (
    'name' => 'Montenegro',
    'domain' => '.me',
  ),
  'MF' => array (
    'name' => 'Saint Martin (French part)',
    'domain' => '.mf',
  ),
  'MG' => array (
    'name' => 'Madagascar',
    'domain' => '.mg',
  ),
  'MH' => array (
    'name' => 'Marshall Islands',
    'domain' => '.mh',
  ),
  'MK' => array (
    'name' => 'Macedonia, the former Yugoslav Republic of',
    'domain' => '.mk',
  ),
  'ML' => array (
    'name' => 'Mali',
    'domain' => '.ml',
  ),
  'MM' => array (
    'name' => 'Myanmar',
    'domain' => '.mm',
  ),
  'MN' => array (
    'name' => 'Mongolia',
    'domain' => '.mn',
  ),
  'MO' => array (
    'name' => 'Macao',
    'domain' => '.mo',
  ),
  'MP' => array (
    'name' => 'Northern Mariana Islands',
    'domain' => '.mp',
  ),
  'MQ' => array (
    'name' => 'Martinique',
    'domain' => '.mq',
  ),
  'MR' => array (
    'name' => 'Mauritania',
    'domain' => '.mr',
  ),
  'MS' => array (
    'name' => 'Montserrat',
    'domain' => '.ms',
  ),
  'MT' => array (
    'name' => 'Malta',
    'domain' => '.mt',
  ),
  'MU' => array (
    'name' => 'Mauritius',
    'domain' => '.mu',
  ),
  'MV' => array (
    'name' => 'Maldives',
    'domain' => '.mv',
  ),
  'MW' => array (
    'name' => 'Malawi',
    'domain' => '.mw',
  ),
  'MX' => array (
    'name' => 'Mexico',
    'domain' => '.mx',
  ),
  'MY' => array (
    'name' => 'Malaysia',
    'domain' => '.my',
  ),
  'MZ' => array (
    'name' => 'Mozambique',
    'domain' => '.mz',
  ),
  'NA' => array (
    'name' => 'Namibia',
    'domain' => '.na',
  ),
  'NC' => array (
    'name' => 'New Caledonia',
    'domain' => '.nc',
  ),
  'NE' => array (
    'name' => 'Niger',
    'domain' => '.ne',
  ),
  'NF' => array (
    'name' => 'Norfolk Island',
    'domain' => '.nf',
  ),
  'NG' => array (
    'name' => 'Nigeria',
    'domain' => '.ng',
  ),
  'NI' => array (
    'name' => 'Nicaragua',
    'domain' => '.ni',
  ),
  'NL' => array (
    'name' => 'Netherlands',
    'domain' => '.nl',
  ),
  'NO' => array (
    'name' => 'Norway',
    'domain' => '.no',
  ),
  'NP' => array (
    'name' => 'Nepal',
    'domain' => '.np',
  ),
  'NR' => array (
    'name' => 'Nauru',
    'domain' => '.nr',
  ),
  'NU' => array (
    'name' => 'Niue',
    'domain' => '.nu',
  ),
  'NZ' => array (
    'name' => 'New Zealand',
    'domain' => '.nz',
  ),
  'OM' => array (
    'name' => 'Oman',
    'domain' => '.om',
  ),
  'PA' => array (
    'name' => 'Panama',
    'domain' => '.pa',
  ),
  'PE' => array (
    'name' => 'Peru',
    'domain' => '.pe',
  ),
  'PF' => array (
    'name' => 'French Polynesia',
    'domain' => '.pf',
  ),
  'PG' => array (
    'name' => 'Papua New Guinea',
    'domain' => '.pg',
  ),
  'PH' => array (
    'name' => 'Philippines',
    'domain' => '.ph',
  ),
  'PK' => array (
    'name' => 'Pakistan',
    'domain' => '.pk',
  ),
  'PL' => array (
    'name' => 'Poland',
    'domain' => '.pl',
  ),
  'PM' => array (
    'name' => 'Saint Pierre and Miquelon',
    'domain' => '.pm',
  ),
  'PN' => array (
    'name' => 'Pitcairn',
    'domain' => '.pn',
  ),
  'PR' => array (
    'name' => 'Puerto Rico',
    'domain' => '.pr',
  ),
  'PS' => array (
    'name' => 'Palestinian Territory, Occupied',
    'domain' => '.ps',
  ),
  'PT' => array (
    'name' => 'Portugal',
    'domain' => '.pt',
  ),
  'PW' => array (
    'name' => 'Palau',
    'domain' => '.pw',
  ),
  'PY' => array (
    'name' => 'Paraguay',
    'domain' => '.py',
  ),
  'QA' => array (
    'name' => 'Qatar',
    'domain' => '.qa',
  ),
  'RE' => array (
    'name' => 'Réunion',
    'domain' => '.re',
  ),
  'RO' => array (
    'name' => 'Romania',
    'domain' => '.ro',
  ),
  'RS' => array (
    'name' => 'Serbia',
    'domain' => '.rs',
  ),
  'RU' => array (
    'name' => 'Russian Federation',
    'domain' => '.ru',
  ),
  'RW' => array (
    'name' => 'Rwanda',
    'domain' => '.rw',
  ),
  'SA' => array (
    'name' => 'Saudi Arabia',
    'domain' => '.sa',
  ),
  'SB' => array (
    'name' => 'Solomon Islands',
    'domain' => '.sb',
  ),
  'SC' => array (
    'name' => 'Seychelles',
    'domain' => '.sc',
  ),
  'SD' => array (
    'name' => 'Sudan',
    'domain' => '.sd',
  ),
  'SE' => array (
    'name' => 'Sweden',
    'domain' => '.se',
  ),
  'SG' => array (
    'name' => 'Singapore',
    'domain' => '.sg',
  ),
  'SH' => array (
    'name' => 'Saint Helena, Ascension and Tristan da Cunha',
    'domain' => '.sh',
  ),
  'SI' => array (
    'name' => 'Slovenia',
    'domain' => '.si',
  ),
  'SJ' => array (
    'name' => 'Svalbard and Jan Mayen',
    'domain' => '.sj',
  ),
  'SK' => array (
    'name' => 'Slovakia',
    'domain' => '.sk',
  ),
  'SL' => array (
    'name' => 'Sierra Leone',
    'domain' => '.sl',
  ),
  'SM' => array (
    'name' => 'San Marino',
    'domain' => '.sm',
  ),
  'SN' => array (
    'name' => 'Senegal',
    'domain' => '.sn',
  ),
  'SO' => array (
    'name' => 'Somalia',
    'domain' => '.so',
  ),
  'SR' => array (
    'name' => 'Suriname',
    'domain' => '.sr',
  ),
  'SS' => array (
    'name' => 'South Sudan',
    'domain' => '.ss',
  ),
  'ST' => array (
    'name' => 'Sao Tome and Principe',
    'domain' => '.st',
  ),
  'SV' => array (
    'name' => 'El Salvador',
    'domain' => '.sv',
  ),
  'SX' => array (
    'name' => 'Sint Maarten (Dutch part)',
    'domain' => '.sx',
  ),
  'SY' => array (
    'name' => 'Syrian Arab Republic',
    'domain' => '.sy',
  ),
  'SZ' => array (
    'name' => 'Swaziland',
    'domain' => '.sz',
  ),
  'TC' => array (
    'name' => 'Turks and Caicos Islands',
    'domain' => '.tc',
  ),
  'TD' => array (
    'name' => 'Chad',
    'domain' => '.td',
  ),
  'TF' => array (
    'name' => 'French Southern Territories',
    'domain' => '.tf',
  ),
  'TG' => array (
    'name' => 'Togo',
    'domain' => '.tg',
  ),
  'TH' => array (
    'name' => 'Thailand',
    'domain' => '.th',
  ),
  'TJ' => array (
    'name' => 'Tajikistan',
    'domain' => '.tj',
  ),
  'TK' => array (
    'name' => 'Tokelau',
    'domain' => '.tk',
  ),
  'TL' => array (
    'name' => 'Timor-Leste',
    'domain' => '.tl',
  ),
  'TM' => array (
    'name' => 'Turkmenistan',
    'domain' => '.tm',
  ),
  'TN' => array (
    'name' => 'Tunisia',
    'domain' => '.tn',
  ),
  'TO' => array (
    'name' => 'Tonga',
    'domain' => '.to',
  ),
  'TR' => array (
    'name' => 'Turkey',
    'domain' => '.tr',
  ),
  'TT' => array (
    'name' => 'Trinidad and Tobago',
    'domain' => '.tt',
  ),
  'TV' => array (
    'name' => 'Tuvalu',
    'domain' => '.tv',
  ),
  'TW' => array (
    'name' => 'Taiwan, Province of China',
    'domain' => '.tw',
  ),
  'TZ' => array (
    'name' => 'Tanzania, United Republic of',
    'domain' => '.tz',
  ),
  'UA' => array (
    'name' => 'Ukraine',
    'domain' => '.ua',
  ),
  'UG' => array (
    'name' => 'Uganda',
    'domain' => '.ug',
  ),
  'UM' => array (
    'name' => 'United States Minor Outlying Islands',
    'domain' => '.um',
  ),
  'US' => array (
    'name' => 'United States',
    'domain' => '.us',
  ),
  'UY' => array (
    'name' => 'Uruguay',
    'domain' => '.uy',
  ),
  'UZ' => array (
    'name' => 'Uzbekistan',
    'domain' => '.uz',
  ),
  'VA' => array (
    'name' => 'Holy See (Vatican City State)',
    'domain' => '.va',
  ),
  'VC' => array (
    'name' => 'Saint Vincent and the Grenadines',
    'domain' => '.vc',
  ),
  'VE' => array (
    'name' => 'Venezuela, Bolivarian Republic of',
    'domain' => '.ve',
  ),
  'VG' => array (
    'name' => 'Virgin Islands, British',
    'domain' => '.vg',
  ),
  'VI' => array (
    'name' => 'Virgin Islands, U.S.',
    'domain' => '.vi',
  ),
  'VN' => array (
    'name' => 'Vietnam',
    'domain' => '.vn',
  ),
  'VU' => array (
    'name' => 'Vanuatu',
    'domain' => '.vu',
  ),
  'WF' => array (
    'name' => 'Wallis and Futuna',
    'domain' => '.wf',
  ),
  'WS' => array (
    'name' => 'Samoa',
    'domain' => '.ws',
  ),
  'YE' => array (
    'name' => 'Yemen',
    'domain' => '.ye',
  ),
  'YT' => array (
    'name' => 'Mayotte',
    'domain' => '.yt',
  ),
  'ZA' => array (
    'name' => 'South Africa',
    'domain' => '.za',
  ),
  'ZM' => array (
    'name' => 'Zambia',
    'domain' => '.zm',
  ),
  'ZW' => array (
    'name' => 'Zimbabwe',
    'domain' => '.zw',
  ),
);

以上是关于PHP ISO 3166-1 alpha-2的主要内容,如果未能解决你的问题,请参考以下文章

世界货币查找表 - 使用 ISO 3166-1 alpha-2 代码?

Android 多国语言

有没有一种简单的方法来检索 ISO 3166-1 数字国家代码

ISO 3166-1α-2 CSV

ruby ISO_3166-1国家代码2 char到3 char映射

地理区域代码列表 [关闭]