Advertisement
nezzario

Country Code PHP Array

Dec 7th, 2012
7,674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.21 KB | None | 0 0
  1. <?php
  2. // US States available at:
  3. // http://pastebin.com/uJkgkb7Q
  4.  
  5. $countrycodes = array (
  6.   'AF' => 'Afghanistan',
  7.   'AX' => 'Åland Islands',
  8.   'AL' => 'Albania',
  9.   'DZ' => 'Algeria',
  10.   'AS' => 'American Samoa',
  11.   'AD' => 'Andorra',
  12.   'AO' => 'Angola',
  13.   'AI' => 'Anguilla',
  14.   'AQ' => 'Antarctica',
  15.   'AG' => 'Antigua and Barbuda',
  16.   'AR' => 'Argentina',
  17.   'AU' => 'Australia',
  18.   'AT' => 'Austria',
  19.   'AZ' => 'Azerbaijan',
  20.   'BS' => 'Bahamas',
  21.   'BH' => 'Bahrain',
  22.   'BD' => 'Bangladesh',
  23.   'BB' => 'Barbados',
  24.   'BY' => 'Belarus',
  25.   'BE' => 'Belgium',
  26.   'BZ' => 'Belize',
  27.   'BJ' => 'Benin',
  28.   'BM' => 'Bermuda',
  29.   'BT' => 'Bhutan',
  30.   'BO' => 'Bolivia',
  31.   'BA' => 'Bosnia and Herzegovina',
  32.   'BW' => 'Botswana',
  33.   'BV' => 'Bouvet Island',
  34.   'BR' => 'Brazil',
  35.   'IO' => 'British Indian Ocean Territory',
  36.   'BN' => 'Brunei Darussalam',
  37.   'BG' => 'Bulgaria',
  38.   'BF' => 'Burkina Faso',
  39.   'BI' => 'Burundi',
  40.   'KH' => 'Cambodia',
  41.   'CM' => 'Cameroon',
  42.   'CA' => 'Canada',
  43.   'CV' => 'Cape Verde',
  44.   'KY' => 'Cayman Islands',
  45.   'CF' => 'Central African Republic',
  46.   'TD' => 'Chad',
  47.   'CL' => 'Chile',
  48.   'CN' => 'China',
  49.   'CX' => 'Christmas Island',
  50.   'CC' => 'Cocos (Keeling) Islands',
  51.   'CO' => 'Colombia',
  52.   'KM' => 'Comoros',
  53.   'CG' => 'Congo',
  54.   'CD' => 'Zaire',
  55.   'CK' => 'Cook Islands',
  56.   'CR' => 'Costa Rica',
  57.   'CI' => 'Côte D\'Ivoire',
  58.   'HR' => 'Croatia',
  59.   'CU' => 'Cuba',
  60.   'CY' => 'Cyprus',
  61.   'CZ' => 'Czech Republic',
  62.   'DK' => 'Denmark',
  63.   'DJ' => 'Djibouti',
  64.   'DM' => 'Dominica',
  65.   'DO' => 'Dominican Republic',
  66.   'EC' => 'Ecuador',
  67.   'EG' => 'Egypt',
  68.   'SV' => 'El Salvador',
  69.   'GQ' => 'Equatorial Guinea',
  70.   'ER' => 'Eritrea',
  71.   'EE' => 'Estonia',
  72.   'ET' => 'Ethiopia',
  73.   'FK' => 'Falkland Islands (Malvinas)',
  74.   'FO' => 'Faroe Islands',
  75.   'FJ' => 'Fiji',
  76.   'FI' => 'Finland',
  77.   'FR' => 'France',
  78.   'GF' => 'French Guiana',
  79.   'PF' => 'French Polynesia',
  80.   'TF' => 'French Southern Territories',
  81.   'GA' => 'Gabon',
  82.   'GM' => 'Gambia',
  83.   'GE' => 'Georgia',
  84.   'DE' => 'Germany',
  85.   'GH' => 'Ghana',
  86.   'GI' => 'Gibraltar',
  87.   'GR' => 'Greece',
  88.   'GL' => 'Greenland',
  89.   'GD' => 'Grenada',
  90.   'GP' => 'Guadeloupe',
  91.   'GU' => 'Guam',
  92.   'GT' => 'Guatemala',
  93.   'GG' => 'Guernsey',
  94.   'GN' => 'Guinea',
  95.   'GW' => 'Guinea-Bissau',
  96.   'GY' => 'Guyana',
  97.   'HT' => 'Haiti',
  98.   'HM' => 'Heard Island and Mcdonald Islands',
  99.   'VA' => 'Vatican City State',
  100.   'HN' => 'Honduras',
  101.   'HK' => 'Hong Kong',
  102.   'HU' => 'Hungary',
  103.   'IS' => 'Iceland',
  104.   'IN' => 'India',
  105.   'ID' => 'Indonesia',
  106.   'IR' => 'Iran, Islamic Republic of',
  107.   'IQ' => 'Iraq',
  108.   'IE' => 'Ireland',
  109.   'IM' => 'Isle of Man',
  110.   'IL' => 'Israel',
  111.   'IT' => 'Italy',
  112.   'JM' => 'Jamaica',
  113.   'JP' => 'Japan',
  114.   'JE' => 'Jersey',
  115.   'JO' => 'Jordan',
  116.   'KZ' => 'Kazakhstan',
  117.   'KE' => 'KENYA',
  118.   'KI' => 'Kiribati',
  119.   'KP' => 'Korea, Democratic People\'s Republic of',
  120.   'KR' => 'Korea, Republic of',
  121.   'KW' => 'Kuwait',
  122.   'KG' => 'Kyrgyzstan',
  123.   'LA' => 'Lao People\'s Democratic Republic',
  124.   'LV' => 'Latvia',
  125.   'LB' => 'Lebanon',
  126.   'LS' => 'Lesotho',
  127.   'LR' => 'Liberia',
  128.   'LY' => 'Libyan Arab Jamahiriya',
  129.   'LI' => 'Liechtenstein',
  130.   'LT' => 'Lithuania',
  131.   'LU' => 'Luxembourg',
  132.   'MO' => 'Macao',
  133.   'MK' => 'Macedonia, the Former Yugoslav Republic of',
  134.   'MG' => 'Madagascar',
  135.   'MW' => 'Malawi',
  136.   'MY' => 'Malaysia',
  137.   'MV' => 'Maldives',
  138.   'ML' => 'Mali',
  139.   'MT' => 'Malta',
  140.   'MH' => 'Marshall Islands',
  141.   'MQ' => 'Martinique',
  142.   'MR' => 'Mauritania',
  143.   'MU' => 'Mauritius',
  144.   'YT' => 'Mayotte',
  145.   'MX' => 'Mexico',
  146.   'FM' => 'Micronesia, Federated States of',
  147.   'MD' => 'Moldova, Republic of',
  148.   'MC' => 'Monaco',
  149.   'MN' => 'Mongolia',
  150.   'ME' => 'Montenegro',
  151.   'MS' => 'Montserrat',
  152.   'MA' => 'Morocco',
  153.   'MZ' => 'Mozambique',
  154.   'MM' => 'Myanmar',
  155.   'NA' => 'Namibia',
  156.   'NR' => 'Nauru',
  157.   'NP' => 'Nepal',
  158.   'NL' => 'Netherlands',
  159.   'AN' => 'Netherlands Antilles',
  160.   'NC' => 'New Caledonia',
  161.   'NZ' => 'New Zealand',
  162.   'NI' => 'Nicaragua',
  163.   'NE' => 'Niger',
  164.   'NG' => 'Nigeria',
  165.   'NU' => 'Niue',
  166.   'NF' => 'Norfolk Island',
  167.   'MP' => 'Northern Mariana Islands',
  168.   'NO' => 'Norway',
  169.   'OM' => 'Oman',
  170.   'PK' => 'Pakistan',
  171.   'PW' => 'Palau',
  172.   'PS' => 'Palestinian Territory, Occupied',
  173.   'PA' => 'Panama',
  174.   'PG' => 'Papua New Guinea',
  175.   'PY' => 'Paraguay',
  176.   'PE' => 'Peru',
  177.   'PH' => 'Philippines',
  178.   'PN' => 'Pitcairn',
  179.   'PL' => 'Poland',
  180.   'PT' => 'Portugal',
  181.   'PR' => 'Puerto Rico',
  182.   'QA' => 'Qatar',
  183.   'RE' => 'Réunion',
  184.   'RO' => 'Romania',
  185.   'RU' => 'Russian Federation',
  186.   'RW' => 'Rwanda',
  187.   'SH' => 'Saint Helena',
  188.   'KN' => 'Saint Kitts and Nevis',
  189.   'LC' => 'Saint Lucia',
  190.   'PM' => 'Saint Pierre and Miquelon',
  191.   'VC' => 'Saint Vincent and the Grenadines',
  192.   'WS' => 'Samoa',
  193.   'SM' => 'San Marino',
  194.   'ST' => 'Sao Tome and Principe',
  195.   'SA' => 'Saudi Arabia',
  196.   'SN' => 'Senegal',
  197.   'RS' => 'Serbia',
  198.   'SC' => 'Seychelles',
  199.   'SL' => 'Sierra Leone',
  200.   'SG' => 'Singapore',
  201.   'SK' => 'Slovakia',
  202.   'SI' => 'Slovenia',
  203.   'SB' => 'Solomon Islands',
  204.   'SO' => 'Somalia',
  205.   'ZA' => 'South Africa',
  206.   'GS' => 'South Georgia and the South Sandwich Islands',
  207.   'ES' => 'Spain',
  208.   'LK' => 'Sri Lanka',
  209.   'SD' => 'Sudan',
  210.   'SR' => 'Suriname',
  211.   'SJ' => 'Svalbard and Jan Mayen',
  212.   'SZ' => 'Swaziland',
  213.   'SE' => 'Sweden',
  214.   'CH' => 'Switzerland',
  215.   'SY' => 'Syrian Arab Republic',
  216.   'TW' => 'Taiwan, Province of China',
  217.   'TJ' => 'Tajikistan',
  218.   'TZ' => 'Tanzania, United Republic of',
  219.   'TH' => 'Thailand',
  220.   'TL' => 'Timor-Leste',
  221.   'TG' => 'Togo',
  222.   'TK' => 'Tokelau',
  223.   'TO' => 'Tonga',
  224.   'TT' => 'Trinidad and Tobago',
  225.   'TN' => 'Tunisia',
  226.   'TR' => 'Turkey',
  227.   'TM' => 'Turkmenistan',
  228.   'TC' => 'Turks and Caicos Islands',
  229.   'TV' => 'Tuvalu',
  230.   'UG' => 'Uganda',
  231.   'UA' => 'Ukraine',
  232.   'AE' => 'United Arab Emirates',
  233.   'GB' => 'United Kingdom',
  234.   'US' => 'United States',
  235.   'UM' => 'United States Minor Outlying Islands',
  236.   'UY' => 'Uruguay',
  237.   'UZ' => 'Uzbekistan',
  238.   'VU' => 'Vanuatu',
  239.   'VE' => 'Venezuela',
  240.   'VN' => 'Viet Nam',
  241.   'VG' => 'Virgin Islands, British',
  242.   'VI' => 'Virgin Islands, U.S.',
  243.   'WF' => 'Wallis and Futuna',
  244.   'EH' => 'Western Sahara',
  245.   'YE' => 'Yemen',
  246.   'ZM' => 'Zambia',
  247.   'ZW' => 'Zimbabwe',
  248. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement