List of countries with country code in PHP

Photo of author
Written By geekerhub

Lorem ipsum dolor sit amet consectetur pulvinar ligula augue quis venenatis. 

PHP country array list with country code.

$country_array = array(
     "AF" => "Afghanistan",
     "AL" => "Albania",
     "DZ" => "Algeria",
     "AS" => "American Samoa",
     "AD" => "Andorra",
     "AO" => "Angola",
     "AI" => "Anguilla",
     "AQ" => "Antarctica",
     "AG" => "Antigua and Barbuda",
     "AR" => "Argentina",
     "AM" => "Armenia",
     "AW" => "Aruba",
     "AU" => "Australia",
     "AT" => "Austria",
     "AZ" => "Azerbaijan",
     "BS" => "Bahamas",
     "BH" => "Bahrain",
     "BD" => "Bangladesh",
     "BB" => "Barbados",
     "BY" => "Belarus",
     "BE" => "Belgium",
     "BZ" => "Belize",
     "BJ" => "Benin",
     "BM" => "Bermuda",
     "BT" => "Bhutan",
     "BO" => "Bolivia",
     "BA" => "Bosnia and Herzegovina",
     "BW" => "Botswana",
     "BV" => "Bouvet Island",
     "BR" => "Brazil",
     "BQ" => "British Antarctic Territory",
     "IO" => "British Indian Ocean Territory",
     "VG" => "British Virgin Islands",
     "BN" => "Brunei",
     "BG" => "Bulgaria",
     "BF" => "Burkina Faso",
     "BI" => "Burundi",
     "KH" => "Cambodia",
     "CM" => "Cameroon",
     "CA" => "Canada",
     "CT" => "Canton and Enderbury Islands",
     "CV" => "Cape Verde",
     "KY" => "Cayman Islands",
     "CF" => "Central African Republic",
     "TD" => "Chad",
     "CL" => "Chile",
     "CN" => "China",
     "CX" => "Christmas Island",
     "CC" => "Cocos [Keeling] Islands",
     "CO" => "Colombia",
     "KM" => "Comoros",
     "CG" => "Congo - Brazzaville",
     "CD" => "Congo - Kinshasa",
     "CK" => "Cook Islands",
     "CR" => "Costa Rica",
     "HR" => "Croatia",
     "CU" => "Cuba",
     "CY" => "Cyprus",
     "CZ" => "Czech Republic",
     "CI" => "Côte d’Ivoire",
     "DK" => "Denmark",
     "DJ" => "Djibouti",
     "DM" => "Dominica",
     "DO" => "Dominican Republic",
     "NQ" => "Dronning Maud Land",
     "DD" => "East Germany",
     "EC" => "Ecuador",
     "EG" => "Egypt",
     "SV" => "El Salvador",
     "GQ" => "Equatorial Guinea",
     "ER" => "Eritrea",
     "EE" => "Estonia",
     "ET" => "Ethiopia",
     "FK" => "Falkland Islands",
     "FO" => "Faroe Islands",
     "FJ" => "Fiji",
     "FI" => "Finland",
     "FR" => "France",
     "GF" => "French Guiana",
     "PF" => "French Polynesia",
     "TF" => "French Southern Territories",
     "FQ" => "French Southern and Antarctic Territories",
     "GA" => "Gabon",
     "GM" => "Gambia",
     "GE" => "Georgia",
     "DE" => "Germany",
     "GH" => "Ghana",
     "GI" => "Gibraltar",
     "GR" => "Greece",
     "GL" => "Greenland",
     "GD" => "Grenada",
     "GP" => "Guadeloupe",
     "GU" => "Guam",
     "GT" => "Guatemala",
     "GG" => "Guernsey",
     "GN" => "Guinea",
     "GW" => "Guinea-Bissau",
     "GY" => "Guyana",
     "HT" => "Haiti",
     "HM" => "Heard Island and McDonald Islands",
     "HN" => "Honduras",
     "HK" => "Hong Kong SAR China",
     "HU" => "Hungary",
     "IS" => "Iceland",
     "IN" => "India",
     "ID" => "Indonesia",
     "IR" => "Iran",
     "IQ" => "Iraq",
     "IE" => "Ireland",
     "IM" => "Isle of Man",
     "IL" => "Israel",
     "IT" => "Italy",
     "JM" => "Jamaica",
     "JP" => "Japan",
     "JE" => "Jersey",
     "JT" => "Johnston Island",
     "JO" => "Jordan",
     "KZ" => "Kazakhstan",
     "KE" => "Kenya",
     "KI" => "Kiribati",
     "KW" => "Kuwait",
     "KG" => "Kyrgyzstan",
     "LA" => "Laos",
     "LV" => "Latvia",
     "LB" => "Lebanon",
     "LS" => "Lesotho",
     "LR" => "Liberia",
     "LY" => "Libya",
     "LI" => "Liechtenstein",
     "LT" => "Lithuania",
     "LU" => "Luxembourg",
     "MO" => "Macau SAR China",
     "MK" => "Macedonia",
     "MG" => "Madagascar",
     "MW" => "Malawi",
     "MY" => "Malaysia",
     "MV" => "Maldives",
     "ML" => "Mali",
     "MT" => "Malta",
     "MH" => "Marshall Islands",
     "MQ" => "Martinique",
     "MR" => "Mauritania",
     "MU" => "Mauritius",
     "YT" => "Mayotte",
     "FX" => "Metropolitan France",
     "MX" => "Mexico",
     "FM" => "Micronesia",
     "MI" => "Midway Islands",
     "MD" => "Moldova",
     "MC" => "Monaco",
     "MN" => "Mongolia",
     "ME" => "Montenegro",
     "MS" => "Montserrat",
     "MA" => "Morocco",
     "MZ" => "Mozambique",
     "MM" => "Myanmar [Burma]",
     "NA" => "Namibia",
     "NR" => "Nauru",
     "NP" => "Nepal",
     "NL" => "Netherlands",
     "AN" => "Netherlands Antilles",
     "NT" => "Neutral Zone",
     "NC" => "New Caledonia",
     "NZ" => "New Zealand",
     "NI" => "Nicaragua",
     "NE" => "Niger",
     "NG" => "Nigeria",
     "NU" => "Niue",
     "NF" => "Norfolk Island",
     "KP" => "North Korea",
     "VD" => "North Vietnam",
     "MP" => "Northern Mariana Islands",
     "NO" => "Norway",
     "OM" => "Oman",
     "PC" => "Pacific Islands Trust Territory",
     "PK" => "Pakistan",
     "PW" => "Palau",
     "PS" => "Palestinian Territories",
     "PA" => "Panama",
     "PZ" => "Panama Canal Zone",
     "PG" => "Papua New Guinea",
     "PY" => "Paraguay",
     "YD" => "People's Democratic Republic of Yemen",
     "PE" => "Peru",
     "PH" => "Philippines",
     "PN" => "Pitcairn Islands",
     "PL" => "Poland",
     "PT" => "Portugal",
     "PR" => "Puerto Rico",
     "QA" => "Qatar",
     "RO" => "Romania",
     "RU" => "Russia",
     "RW" => "Rwanda",
     "RE" => "Réunion",
     "BL" => "Saint Barthélemy",
     "SH" => "Saint Helena",
     "KN" => "Saint Kitts and Nevis",
     "LC" => "Saint Lucia",
     "MF" => "Saint Martin",
     "PM" => "Saint Pierre and Miquelon",
     "VC" => "Saint Vincent and the Grenadines",
     "WS" => "Samoa",
     "SM" => "San Marino",
     "SA" => "Saudi Arabia",
     "SN" => "Senegal",
     "RS" => "Serbia",
     "CS" => "Serbia and Montenegro",
     "SC" => "Seychelles",
     "SL" => "Sierra Leone",
     "SG" => "Singapore",
     "SK" => "Slovakia",
     "SI" => "Slovenia",
     "SB" => "Solomon Islands",
     "SO" => "Somalia",
     "ZA" => "South Africa",
     "GS" => "South Georgia and the South Sandwich Islands",
     "KR" => "South Korea",
     "ES" => "Spain",
     "LK" => "Sri Lanka",
     "SD" => "Sudan",
     "SR" => "Suriname",
     "SJ" => "Svalbard and Jan Mayen",
     "SZ" => "Swaziland",
     "SE" => "Sweden",
     "CH" => "Switzerland",
     "SY" => "Syria",
     "ST" => "São Tomé and Príncipe",
     "TW" => "Taiwan",
     "TJ" => "Tajikistan",
     "TZ" => "Tanzania",
     "TH" => "Thailand",
     "TL" => "Timor-Leste",
     "TG" => "Togo",
     "TK" => "Tokelau",
     "TO" => "Tonga",
     "TT" => "Trinidad and Tobago",
     "TN" => "Tunisia",
     "TR" => "Turkey",
     "TM" => "Turkmenistan",
     "TC" => "Turks and Caicos Islands",
     "TV" => "Tuvalu",
     "UM" => "U.S. Minor Outlying Islands",
     "PU" => "U.S. Miscellaneous Pacific Islands",
     "VI" => "U.S. Virgin Islands",
     "UG" => "Uganda",
     "UA" => "Ukraine",
     "SU" => "Union of Soviet Socialist Republics",
     "AE" => "United Arab Emirates",
     "GB" => "United Kingdom",
     "US" => "United States",
     "ZZ" => "Unknown or Invalid Region",
     "UY" => "Uruguay",
     "UZ" => "Uzbekistan",
     "VU" => "Vanuatu",
     "VA" => "Vatican City",
     "VE" => "Venezuela",
     "VN" => "Vietnam",
     "WK" => "Wake Island",
     "WF" => "Wallis and Futuna",
     "EH" => "Western Sahara",
     "YE" => "Yemen",
     "ZM" => "Zambia",
     "ZW" => "Zimbabwe",
     "AX" => "Åland Islands",
 );

list with names compliant with the USPS Shipping Rate Calculator,

$country_array = array(
     "Abu Dhabi (United Arab Emirates)",
     "Admiralty Islands (Papua New Guinea)",
     "Afghanistan",
     "Aitutaki, Cook Islands (New Zealand)",
     "Ajman (United Arab Emirates)",
     "Aland Island (Finland)",
     "Albania",
     "Alberta (Canada)",
     "Alderney (Channel Islands) (Great Britain and Northern Ireland)",
     "Algeria",
     "Alhucemas (Spain)",
     "Alofi Island (New Caledonia)",
     "Andaman Islands (India)",
     "Andorra",
     "Angola",
     "Anguilla",
     "Anjouan (Comoros)",
     "Annobon Island (Equatorial Guinea)",
     "Antigua (Antigua and Barbuda)",
     "Antigua and Barbuda",
     "Argentina",
     "Armenia",
     "Aruba",
     "Ascension",
     "Astypalaia (Greece)",
     "Atafu (Western Samoa)",
     "Atiu, Cook Islands (New Zealand)",
     "Australia",
     "Austria",
     "Avarua (New Zealand)",
     "Azerbaijan",
     "Azores (Portugal)",
     "Bahamas",
     "Bahrain",
     "Balearic Islands (Spain)",
     "Balochistan (Pakistan)",
     "Bangladesh",
     "Banks Island (Vanuatu)",
     "Barbados",
     "Barbuda (Antigua and Barbuda)",
     "Barthelemy (Guadeloupe)",
     "Belarus",
     "Belgium",
     "Belize",
     "Benin",
     "Bermuda",
     "Bhutan",
     "Bismark Archipelago (Papua New Guinea)",
     "Bolivia",
     "Bonaire (Curacao)",
     "Borabora (French Polynesia)",
     "Borneo (Indonesia)",
     "Bosnia-Herzegovina",
     "Botswana",
     "Bougainville (Papua New Guinea)",
     "Bourbon (Reunion)",
     "Brazil",
     "British Columbia (Canada)",
     "British Guiana (Guyana)",
     "British Virgin Islands",
     "Brunei Darussalam",
     "Buka (Papua New Guinea)",
     "Bulgaria",
     "Burkina Faso",
     "Burma",
     "Burundi",
     "Caicos Islands (Turks and Caicos Islands)",
     "Cambodia",
     "Cameroon",
     "Canada",
     "Canary Islands (Spain)",
     "Canton Island (Kiribati)",
     "Cape Verde",
     "Cayman Islands",
     "Central African Republic",
     "Ceuta (Spain)",
     "Ceylon (Sri Lanka)",
     "Chad",
     "Chaferinas Islands (Spain)",
     "Chalki (Greece)",
     "Channel Islands (Jersey, Guernsey, Alderney, and Sark) (Great Britain and Northern Ireland)",
     "Chile",
     "China",
     "Christmas Island (Australia)",
     "Christmas Island (Kiribati)",
     "Cocos Island (Australia)",
     "Colombia",
     "Comoros",
     "Congo, Democratic Republic of the",
     "Congo, Republic of the",
     "Cook Islands (New Zealand)",
     "Corisco Island (Equatorial Guinea)",
     "Corsica (France)",
     "Costa Rica",
     "Cote d’Ivoire",
     "Crete (Greece)",
     "Croatia",
     "Cuba",
     "Cumino Island (Malta)",
     "Curacao (includes Bonaire, Saba, and Sint Eustatius)",
     "Cyjrenaica (Libya)",
     "Cyprus",
     "Czech Republic",
     "Dahomey (Benin)",
     "Damao (India)",
     "Danger Islands (New Zealand)",
     "Denmark",
     "Desirade Island (Guadeloupe)",
     "Diu (India)",
     "Djibouti",
     "Dodecanese Islands (Greece)",
     "Doha (Qatar)",
     "Dominica",
     "Dominican Republic",
     "Dubai (United Arab Emirates)",
     "East Timor (Timor-Leste)",
     "Ecuador",
     "Egypt",
     "Eire (Ireland)",
     "El Salvador",
     "Ellice Islands (Tuvalu)",
     "Elobey Islands (Equatorial Guinea)",
     "Enderbury Island (Kiribati)",
     "England (Great Britain and Northern Ireland)",
     "Equatorial Guinea",
     "Eritrea",
     "Estonia",
     "Ethiopia",
     "Fakaofo (Western Samoa)",
     "Falkland Islands",
     "Fanning Island (Kiribati)",
     "Faroe Islands",
     "Fernando Po (Equatorial Guinea)",
     "Fezzan (Libya)",
     "Fiji",
     "Finland",
     "Formosa (Taiwan)",
     "France",
     //"Frederiksted, US Virgin Islands, United States (Domestic Mail)",
     "French Guiana",
     "French Oceania (French Polynesia)",
     "French Polynesia",
     "French West Indies (Guadeloupe)",
     "French West Indies (Martinique)",
     "Friendly Islands (Tonga)",
     "Fujairah (United Arab Emirates)",
     "Futuna (Wallis and Futuna Islands)",
     "Gabon",
     "Gambia",
     "Gambier (French Polynesia)",
     "Georgia, Republic of",
     "Germany",
     "Ghana",
     "Gibraltar",
     "Gilbert Islands (Kiribati)",
     "Goa (India)",
     "Gozo Island (Malta)",
     "Grand Comoro (Comoros)",
     "Great Britain and Northern Ireland",
     "Greece",
     "Greenland",
     "Grenada",
     "Grenadines (Saint Vincent and the Grenadines)",
     "Guadeloupe",
     "Guatemala",
     "Guernsey (Channel Islands) (Great Britain and Northern Ireland)",
     "Guinea",
     "Guinea–Bissau",
     "Guyana",
     "Hainan Island (China)",
     "Haiti",
     "Hashemite Kingdom (Jordan)",
     "Hervey, Cook Islands (New Zealand)",
     "Hivaoa (French Polynesia)",
     "Holland (Netherlands)",
     "Honduras",
     "Hong Kong",
     "Huahine (French Polynesia)",
     "Huan Island (New Caledonia)",
     "Hungary",
     "Iceland",
     "India",
     "Indonesia",
     "Iran",
     "Iraq",
     "Ireland",
     "Irian Barat (Indonesia)",
     "Isle of Man (Great Britain and Northern Ireland)",
     "Isle of Pines (New Caledonia)",
     "Isle of Pines, West Indies (Cuba)",
     "Israel",
     "Issas (Djibouti)",
     "Italy",
     "Ivory Coast (Cote d’Ivoire)",
     "Jamaica",
     "Japan",
     "Jersey (Channel Islands) (Great Britain and Northern Ireland)",
     "Johore (Malaysia)",
     "Jordan",
     "Kalymnos (Greece)",
     "Kampuchea (Cambodia)",
     "Karpathos (Greece)",
     "Kassos (Greece)",
     "Kastellorizon (Greece)",
     "Kazakhstan",
     "Kedah (Malaysia)",
     "Keeling Islands (Australia)",
     "Kelantan (Malaysia)",
     "Kenya",
     "Kiribati",
     "Korea, Democratic People’s Republic of
     (North Korea)",
     "Korea, Republic of (South Korea)",
     "Kos (Greece)",
     "Kosovo, Republic of",
     "Kowloon (Hong Kong)",
     "Kuwait",
     "Kyrgyzstan",
     "Labrador (Canada)",
     "Labuan (Malaysia)",
     "Laos",
     "Latvia",
     "Lebanon",
     "Leipsos (Greece)",
     "Leros (Greece)",
     "Les Saints Island (Guadeloupe)",
     "Lesotho",
     "Liberia",
     "Libya",
     "Liechtenstein",
     "Lithuania",
     "Lord Howe Island (Australia)",
     "Loyalty Islands (New Caledonia)",
     "Luxembourg",
     "Macao",
     "Macau (Macao)",
     "Macedonia, Republic of",
     "Madagascar",
     "Madeira Islands (Portugal)",
     "Malacca (Malaysia)",
     "Malawi",
     "Malaysia",
     "Maldives",
     "Mali",
     "Malta",
     "Manahiki (New Zealand)",
     "Manchuria (China)",
     "Manitoba (Canada)",
     "Marie Galante (Guadeloupe)",
     "Marquesas Islands (French Polynesia)",
     "Martinique",
     "Mauritania",
     "Mauritius",
     "Mayotte (France)",
     "Melilla (Spain)",
     "Mexico",
     "Miquelon (Saint Pierre and Miquelon)",
     "Moheli (Comoros)",
     "Moldova",
     "Monaco (France)",
     "Mongolia",
     "Montenegro",
     "Montserrat",
     "Moorea (French Polynesia)",
     "Morocco",
     "Mozambique",
     "Muscat (Oman)",
     "Myanmar (Burma)",
     "Namibia",
     "Nansil Islands (Japan)",
     "Nauru",
     "Negri Sembilan (Malaysia)",
     "Nepal",
     "Netherlands",
     "Netherlands Antilles (Curacao)",
     "Netherlands Antilles (Sint Maarten)",
     "Nevis (Saint Christopher and Nevis)",
     "New Britain (Papua New Guinea)",
     "New Brunswick (Canada)",
     "New Caledonia",
     "New Hanover (Papua New Guinea)",
     "New Hebrides (Vanuatu)",
     "New Ireland (Papua New Guinea)",
     "New South Wales (Australia)",
     "New Zealand",
     "Newfoundland (Canada)",
     "Nicaragua",
     "Niger",
     "Nigeria",
     "Nissiros (Greece)",
     "Niue (New Zealand)",
     "Norfolk Island (Australia)",
     "North Borneo (Malaysia)",
     "North Korea (Korea, Democratic People’s
     Republic of)",
     "Northern Ireland
     (Great Britain and Northern Ireland)",
     "Northwest Territory (Canada)",
     "Norway",
     "Nova Scotia (Canada)",
     "Nukahiva (French Polynesia)",
     "Nukunonu (Western Samoa)",
     "Ocean Island (Kiribati)",
     "Okinawa (Japan)",
     "Oman",
     "Ontario (Canada)",
     "Pahang (Malaysia)",
     "Pakistan",
     "Palmerston, Avarua (New Zealand)",
     "Panama",
     "Papua New Guinea",
     "Paraguay",
     "Parry, Cook Islands (New Zealand)",
     "Patmos (Greece)",
     "Pemba (Tanzania)",
     "Penang (Malaysia)",
     "Penghu Islands (Taiwan)",
     "Penon de Velez de la Gomera (Spain)",
     "Penrhyn, Tongareva (New Zealand)",
     "Perak (Malaysia)",
     "Perlis (Malaysia)",
     "Persia (Iran)",
     "Peru",
     "Pescadores Islands (Taiwan)",
     "Petite Terre (Guadeloupe)",
     "Philippines",
     "Pitcairn Island",
     "Poland",
     "Portugal",
     "Prince Edward Island (Canada)",
     "Pukapuka (New Zealand)",
     "Qatar",
     "Quebec (Canada)",
     "Queensland (Australia)",
     "Quemoy (Taiwan)",
     "Raiatea (French Polynesia)",
     "Rakaanga (New Zealand)",
     "Rapa (French Polynesia)",
     "Rarotonga, Cook Islands (New Zealand)",
     "Ras al Kaimah (United Arab Emirates)",
     "Redonda (Antigua and Barbuda)",
     "Reunion",
     "Rio Muni (Equatorial Guinea)",
     "Rodos (Greece)",
     "Rodrigues (Mauritius)",
     "Romania",
     "Russia",
     "Rwanda",
     "Saba (Curacao)",
     "Sabah (Malaysia)",
     "Saint Barthelemy (Guadeloupe)",
     "Saint Bartholomew (Guadeloupe)",
     "Saint Christopher and Nevis",
     "Saint Helena",
     "Saint Kitts (Saint Christopher and Nevis)",
     "Saint Lucia",
     "Saint Martin (French) (Guadeloupe)",
     "Saint Pierre and Miquelon",
     "Saint Vincent and the Grenadines",
     "Sainte Marie de Madagascar (Madagascar)",
     "Salvador (El Salvador)",
     "San Marino",
     "Santa Cruz Islands (Solomon Islands)",
     "Sao Tome and Principe",
     "Sarawak (Malaysia)",
     "Sark (Channel Islands) (Great Britain and Northern Ireland)",
     "Saskatchewan (Canada)",
     "Saudi Arabia",
     "Savage Island, Niue (New Zealand)",
     "Savaii Island (Western Samoa)",
     "Scotland (Great Britain and Northern Ireland)",
     "Seberang Perai (Malaysia)",
     "Selangor (Malaysia)",
     "Senegal",
     "Serbia, Republic of",
     "Seychelles",
     "Sharja (United Arab Emirates)",
     "Shikoku (Japan)",
     "Sierra Leone",
     "Sikkim (India)",
     "Singapore",
     "Sint Eustatius (Curacao)",
     "Sint Maarten (Dutch)",
     "Slovak Republic (Slovakia)",
     "Slovenia",
     "Society Islands (French Polynesia)",
     "Solomon Islands",
     "Somali Democratic Republic (Somalia)",
     "Somalia",
     "Somaliland (Somalia)",
     "South Africa",
     "South Australia (Australia)",
     "South Georgia (Falkland Islands)",
     "South Korea (Korea, Republic of)",
     "Spain",
     "Spitzbergen (Norway)",
     "Sri Lanka",
     "Sudan",
     "Suriname",
     "Suwarrow Islands (New Zealand)",
     "Swan Islands (Honduras)",
     "Swaziland",
     "Sweden",
     "Switzerland",
     "Symi (Greece)",
     "Syrian Arab Republic (Syria)",
     "Tahaa (French Polynesia)",
     "Tahiti (French Polynesia)",
     "Taiwan",
     "Tajikistan",
     "Tanzania",
     "Tasmania (Australia)",
     "Tchad (Chad)",
     "Thailand",
     "Thursday Island (Australia)",
     "Tibet (China)",
     "Tilos (Greece)",
     "Timor (Indonesia)",
     "Timor-Leste, Democratic Republic of",
     "Tobago (Trinidad and Tobago)",
     "Togo",
     "Tokelau (Western Samoa)",
     "Tonga",
     "Tongareva (New Zealand)",
     "Tori Shima (Japan)",
     "Torres Island (Vanuatu)",
     "Trans-Jordan, Hashemite Kingdom (Jordan)",
     "Transkei (South Africa)",
     "Trengganu (Malaysia)",
     "Trinidad and Tobago",
     "Tripolitania (Libya)",
     "Tristan da Cunha",
     "Trucial States (United Arab Emirates)",
     "Tuamotou (French Polynesia)",
     "Tubuai (French Polynesia)",
     "Tunisia",
     "Turkey",
     "Turkmenistan",
     "Turks and Caicos Islands",
     "Tuvalu",
     "Uganda",
     "Ukraine",
     "Umm al Quaiwain (United Arab Emirates)",
     "Umm Said (Qatar)",
     "United Arab Emirates",
     "United Kingdom (Great Britain and Northern Ireland)",
     "Upolu Island (Western Samoa)",
     "Uruguay",
     "Uzbekistan",
     "Vanuatu",
     "Vatican City",
     "Venezuela",
     "Victoria (Australia)",
     "Vietnam",
     "Virgin Islands (British)",
     "Wales (Great Britain and Northern Ireland)",
     "Wallis and Futuna Islands",
     "Wellesley, Province (Malaysia)",
     "West New Guinea (Indonesia)",
     "Western Australia (Australia)",
     "Western Samoa",
     "Yemen",
     "Yukon Territory (Canada)",
     "Zafarani Islands (Spain)",
     "Zambia",
     "Zanzibar (Tanzania)",
     "Zimbabwe",
 );

List of countries with country code and native tongue

$country_array = array(
     "AF" => array('name'=>"Afghanistan", 'nativetongue'=>"‫افغانستان"),
     "AX" => array('name'=>"Åland Islands", 'nativetongue'=>"Åland"),
     "AL" => array('name'=>"Albania", 'nativetongue'=>"Shqipëri"),
     "DZ" => array('name'=>"Algeria", 'nativetongue'=>"‫الجزائر"),
     "AS" => array('name'=>"American Samoa", 'nativetongue'=>""),
     "AD" => array('name'=>"Andorra", 'nativetongue'=>""),
     "AO" => array('name'=>"Angola", 'nativetongue'=>""),
     "AI" => array('name'=>"Anguilla", 'nativetongue'=>""),
     "AQ" => array('name'=>"Antarctica", 'nativetongue'=>""),
     "AG" => array('name'=>"Antigua and Barbuda", 'nativetongue'=>""),
     "AR" => array('name'=>"Argentina", 'nativetongue'=>""),
     "AM" => array('name'=>"Armenia", 'nativetongue'=>"Հայաստան"),
     "AW" => array('name'=>"Aruba", 'nativetongue'=>""),
     "AC" => array('name'=>"Ascension Island", 'nativetongue'=>""),
     "AU" => array('name'=>"Australia", 'nativetongue'=>""),
     "AT" => array('name'=>"Austria", 'nativetongue'=>"Österreich"),
     "AZ" => array('name'=>"Azerbaijan", 'nativetongue'=>"Azərbaycan"),
     "BS" => array('name'=>"Bahamas", 'nativetongue'=>""),
     "BH" => array('name'=>"Bahrain", 'nativetongue'=>"‫البحرين"),
     "BD" => array('name'=>"Bangladesh", 'nativetongue'=>"বাংলাদেশ"),
     "BB" => array('name'=>"Barbados", 'nativetongue'=>""),
     "BY" => array('name'=>"Belarus", 'nativetongue'=>"Беларусь"),
     "BE" => array('name'=>"Belgium", 'nativetongue'=>"België"),
     "BZ" => array('name'=>"Belize", 'nativetongue'=>""),
     "BJ" => array('name'=>"Benin", 'nativetongue'=>"Bénin"),
     "BM" => array('name'=>"Bermuda", 'nativetongue'=>""),
     "BT" => array('name'=>"Bhutan", 'nativetongue'=>"འབྲུག"),
     "BO" => array('name'=>"Bolivia", 'nativetongue'=>""),
     "BA" => array('name'=>"Bosnia and Herzegovina", 'nativetongue'=>"Босна и Херцеговина"),
     "BW" => array('name'=>"Botswana", 'nativetongue'=>""),
     "BV" => array('name'=>"Bouvet Island", 'nativetongue'=>""),
     "BR" => array('name'=>"Brazil", 'nativetongue'=>"Brasil"),
     "IO" => array('name'=>"British Indian Ocean Territory",'nativetongue'=>""),
     "VG" => array('name'=>"British Virgin Islands", 'nativetongue'=>""),
     "BN" => array('name'=>"Brunei", 'nativetongue'=>""),
     "BG" => array('name'=>"Bulgaria", 'nativetongue'=>"България"),
     "BF" => array('name'=>"Burkina Faso", 'nativetongue'=>""),
     "BI" => array('name'=>"Burundi", 'nativetongue'=>"Uburundi"),
     "KH" => array('name'=>"Cambodia", 'nativetongue'=>"កម្ពុជា"),
     "CM" => array('name'=>"Cameroon", 'nativetongue'=>"Cameroun"),
     "CA" => array('name'=>"Canada", 'nativetongue'=>""),
     "IC" => array('name'=>"Canary Islands", 'nativetongue'=>"islas Canarias"),
     "CV" => array('name'=>"Cape Verde", 'nativetongue'=>"Kabu Verdi"),
     "BQ" => array('name'=>"Caribbean Netherlands", 'nativetongue'=>""),
     "KY" => array('name'=>"Cayman Islands", 'nativetongue'=>""),
     "CF" => array('name'=>"Central African Republic",'nativetongue'=>"République centrafricaine"),
     "EA" => array('name'=>"Ceuta and Melilla", 'nativetongue'=>"Ceuta y Melilla"),
     "TD" => array('name'=>"Chad", 'nativetongue'=>"Tchad"),
     "CL" => array('name'=>"Chile", 'nativetongue'=>""),
     "CN" => array('name'=>"China", 'nativetongue'=>"中国"),
     "CX" => array('name'=>"Christmas Island", 'nativetongue'=>""),
     "CP" => array('name'=>"Clipperton Island", 'nativetongue'=>""),
     "CC" => array('name'=>"Cocos (Keeling) Islands", 'nativetongue'=>"Kepulauan Cocos (Keeling)"),
     "CO" => array('name'=>"Colombia", 'nativetongue'=>""),
     "KM" => array('name'=>"Comoros", 'nativetongue'=>"‫جزر القمر"),
     "CD" => array('name'=>"Congo (DRC)", 'nativetongue'=>"Jamhuri ya Kidemokrasia ya Kongo"),
     "CG" => array('name'=>"Congo (Republic)", 'nativetongue'=>"Congo-Brazzaville"),
     "CK" => array('name'=>"Cook Islands", 'nativetongue'=>""),
     "CR" => array('name'=>"Costa Rica", 'nativetongue'=>""),
     "CI" => array('name'=>"Côte d’Ivoire", 'nativetongue'=>""),
     "HR" => array('name'=>"Croatia", 'nativetongue'=>"Hrvatska"),
     "CU" => array('name'=>"Cuba", 'nativetongue'=>""),
     "CW" => array('name'=>"Curaçao", 'nativetongue'=>""),
     "CY" => array('name'=>"Cyprus", 'nativetongue'=>"Κύπρος"),
     "CZ" => array('name'=>"Czech Republic", 'nativetongue'=>"Česká republika"),
     "DK" => array('name'=>"Denmark", 'nativetongue'=>"Danmark"),
     "DG" => array('name'=>"Diego Garcia", 'nativetongue'=>""),
     "DJ" => array('name'=>"Djibouti", 'nativetongue'=>""),
     "DM" => array('name'=>"Dominica", 'nativetongue'=>""),
     "DO" => array('name'=>"Dominican Republic", 'nativetongue'=>"República Dominicana"),
     "EC" => array('name'=>"Ecuador", 'nativetongue'=>""),
     "EG" => array('name'=>"Egypt", 'nativetongue'=>"‫مصر"),
     "SV" => array('name'=>"El Salvador", 'nativetongue'=>""),
     "GQ" => array('name'=>"Equatorial Guinea",'nativetongue'=>"Guinea Ecuatorial"),
     "ER" => array('name'=>"Eritrea", 'nativetongue'=>""),
     "EE" => array('name'=>"Estonia", 'nativetongue'=>"Eesti"),
     "ET" => array('name'=>"Ethiopia", 'nativetongue'=>""),
     "FK" => array('name'=>"Falkland Islands", 'nativetongue'=>"Islas Malvinas"),
     "FO" => array('name'=>"Faroe Islands", 'nativetongue'=>"Føroyar"),
     "FJ" => array('name'=>"Fiji", 'nativetongue'=>""),
     "FI" => array('name'=>"Finland", 'nativetongue'=>"Suomi"),
     "FR" => array('name'=>"France", 'nativetongue'=>""),
     "GF" => array('name'=>"French Guiana", 'nativetongue'=>"Guyane française"),
     "PF" => array('name'=>"French Polynesia", 'nativetongue'=>"Polynésie française"),
     "TF" => array('name'=>"French Southern Territories", 'nativetongue'=>"Terres australes françaises"),
     "GA" => array('name'=>"Gabon", 'nativetongue'=>""),
     "GM" => array('name'=>"Gambia", 'nativetongue'=>""),
     "GE" => array('name'=>"Georgia", 'nativetongue'=>"საქართველო"),
     "DE" => array('name'=>"Germany", 'nativetongue'=>"Deutschland"),
     "GH" => array('name'=>"Ghana", 'nativetongue'=>"Gaana"),
     "GI" => array('name'=>"Gibraltar", 'nativetongue'=>""),
     "GR" => array('name'=>"Greece", 'nativetongue'=>"Ελλάδα"),
     "GL" => array('name'=>"Greenland", 'nativetongue'=>"Kalaallit Nunaat"),
     "GD" => array('name'=>"Grenada", 'nativetongue'=>""),
     "GP" => array('name'=>"Guadeloupe", 'nativetongue'=>""),
     "GU" => array('name'=>"Guam", 'nativetongue'=>""),
     "GT" => array('name'=>"Guatemala", 'nativetongue'=>""),
     "GG" => array('name'=>"Guernsey", 'nativetongue'=>""),
     "GN" => array('name'=>"Guinea", 'nativetongue'=>"Guinée"),
     "GW" => array('name'=>"Guinea-Bissau", 'nativetongue'=>"Guiné Bissau"),
     "GY" => array('name'=>"Guyana", 'nativetongue'=>""),
     "HT" => array('name'=>"Haiti", 'nativetongue'=>""),
     "HM" => array('name'=>"Heard & McDonald Islands", 'nativetongue'=>""),
     "HN" => array('name'=>"Honduras", 'nativetongue'=>""),
     "HK" => array('name'=>"Hong Kong", 'nativetongue'=>"香港"),
     "HU" => array('name'=>"Hungary", 'nativetongue'=>"Magyarország"),
     "IS" => array('name'=>"Iceland", 'nativetongue'=>"Ísland"),
     "IN" => array('name'=>"India", 'nativetongue'=>"भारत"),
     "ID" => array('name'=>"Indonesia", 'nativetongue'=>""),
     "IR" => array('name'=>"Iran", 'nativetongue'=>"‫ایران"),
     "IQ" => array('name'=>"Iraq", 'nativetongue'=>"‫العراق"),
     "IE" => array('name'=>"Ireland", 'nativetongue'=>""),
     "IM" => array('name'=>"Isle of Man", 'nativetongue'=>""),
     "IL" => array('name'=>"Israel", 'nativetongue'=>"‫ישראל"),
     "IT" => array('name'=>"Italy", 'nativetongue'=>"Italia"),
     "JM" => array('name'=>"Jamaica", 'nativetongue'=>""),
     "JP" => array('name'=>"Japan", 'nativetongue'=>"日本"),
     "JE" => array('name'=>"Jersey", 'nativetongue'=>""),
     "JO" => array('name'=>"Jordan", 'nativetongue'=>"‫الأردن"),
     "KZ" => array('name'=>"Kazakhstan", 'nativetongue'=>"Казахстан"),
     "KE" => array('name'=>"Kenya", 'nativetongue'=>""),
     "KI" => array('name'=>"Kiribati", 'nativetongue'=>""),
     "XK" => array('name'=>"Kosovo", 'nativetongue'=>"Kosovë"),
     "KW" => array('name'=>"Kuwait", 'nativetongue'=>"‫الكويت"),
     "KG" => array('name'=>"Kyrgyzstan", 'nativetongue'=>"Кыргызстан"),
     "LA" => array('name'=>"Laos", 'nativetongue'=>"ລາວ"),
     "LV" => array('name'=>"Latvia", 'nativetongue'=>"Latvija"),
     "LB" => array('name'=>"Lebanon", 'nativetongue'=>"‫لبنان"),
     "LS" => array('name'=>"Lesotho", 'nativetongue'=>""),
     "LR" => array('name'=>"Liberia", 'nativetongue'=>""),
     "LY" => array('name'=>"Libya", 'nativetongue'=>"‫ليبيا"),
     "LI" => array('name'=>"Liechtenstein", 'nativetongue'=>""),
     "LT" => array('name'=>"Lithuania", 'nativetongue'=>"Lietuva"),
     "LU" => array('name'=>"Luxembourg", 'nativetongue'=>""),
     "MO" => array('name'=>"Macau", 'nativetongue'=>"澳門"),
     "MK" => array('name'=>"Macedonia (FYROM)",'nativetongue'=>"Македонија"),
     "MG" => array('name'=>"Madagascar", 'nativetongue'=>"Madagasikara"),
     "MW" => array('name'=>"Malawi", 'nativetongue'=>""),
     "MY" => array('name'=>"Malaysia", 'nativetongue'=>""),
     "MV" => array('name'=>"Maldives", 'nativetongue'=>""),
     "ML" => array('name'=>"Mali", 'nativetongue'=>""),
     "MT" => array('name'=>"Malta", 'nativetongue'=>""),
     "MH" => array('name'=>"Marshall Islands", 'nativetongue'=>""),
     "MQ" => array('name'=>"Martinique", 'nativetongue'=>""),
     "MR" => array('name'=>"Mauritania", 'nativetongue'=>"‫موريتانيا"),
     "MU" => array('name'=>"Mauritius", 'nativetongue'=>"Moris"),
     "YT" => array('name'=>"Mayotte", 'nativetongue'=>""),
     "MX" => array('name'=>"Mexico", 'nativetongue'=>""),
     "FM" => array('name'=>"Micronesia", 'nativetongue'=>""),
     "MD" => array('name'=>"Moldova", 'nativetongue'=>"Republica Moldova"),
     "MC" => array('name'=>"Monaco", 'nativetongue'=>""),
     "MN" => array('name'=>"Mongolia", 'nativetongue'=>"Монгол"),
     "ME" => array('name'=>"Montenegro", 'nativetongue'=>"Crna Gora"),
     "MS" => array('name'=>"Montserrat", 'nativetongue'=>""),
     "MA" => array('name'=>"Morocco", 'nativetongue'=>"‫المغرب"),
     "MZ" => array('name'=>"Mozambique", 'nativetongue'=>"Moçambique"),
     "MM" => array('name'=>"Myanmar (Burma)", 'nativetongue'=>"မြန်မာ"),
     "NA" => array('name'=>"Namibia", 'nativetongue'=>"Namibië"),
     "NR" => array('name'=>"Nauru", 'nativetongue'=>""),
     "NP" => array('name'=>"Nepal", 'nativetongue'=>"नेपाल"),
     "NL" => array('name'=>"Netherlands", 'nativetongue'=>"Nederland"),
     "NC" => array('name'=>"New Caledonia", 'nativetongue'=>"Nouvelle-Calédonie"),
     "NZ" => array('name'=>"New Zealand", 'nativetongue'=>""),
     "NI" => array('name'=>"Nicaragua", 'nativetongue'=>""),
     "NE" => array('name'=>"Niger", 'nativetongue'=>"Nijar"),
     "NG" => array('name'=>"Nigeria", 'nativetongue'=>""),
     "NU" => array('name'=>"Niue", 'nativetongue'=>""),
     "NF" => array('name'=>"Norfolk Island", 'nativetongue'=>""),
     "MP" => array('name'=>"Northern Mariana Islands", 'nativetongue'=>""),
     "KP" => array('name'=>"North Korea", 'nativetongue'=>"조선 민주주의 인민 공화국"),
     "NO" => array('name'=>"Norway", 'nativetongue'=>"Norge"),
     "OM" => array('name'=>"Oman", 'nativetongue'=>"‫عُمان"),
     "PK" => array('name'=>"Pakistan", 'nativetongue'=>"‫پاکستان"),
     "PW" => array('name'=>"Palau", 'nativetongue'=>""),
     "PS" => array('name'=>"Palestine", 'nativetongue'=>"‫فلسطين"),
     "PA" => array('name'=>"Panama", 'nativetongue'=>""),
     "PG" => array('name'=>"Papua New Guinea", 'nativetongue'=>""),
     "PY" => array('name'=>"Paraguay", 'nativetongue'=>""),
     "PE" => array('name'=>"Peru", 'nativetongue'=>"Perú"),
     "PH" => array('name'=>"Philippines", 'nativetongue'=>""),
     "PN" => array('name'=>"Pitcairn Islands", 'nativetongue'=>""),
     "PL" => array('name'=>"Poland", 'nativetongue'=>"Polska"),
     "PT" => array('name'=>"Portugal", 'nativetongue'=>""),
     "PR" => array('name'=>"Puerto Rico", 'nativetongue'=>""),
     "QA" => array('name'=>"Qatar", 'nativetongue'=>"‫قطر"),
     "RE" => array('name'=>"Réunion", 'nativetongue'=>"La Réunion"),
     "RO" => array('name'=>"Romania", 'nativetongue'=>"România"),
     "RU" => array('name'=>"Russia", 'nativetongue'=>"Россия"),
     "RW" => array('name'=>"Rwanda", 'nativetongue'=>""),
     "BL" => array('name'=>"Saint Barthélemy", 'nativetongue'=>"Saint-Barthélemy"),
     "SH" => array('name'=>"Saint Helena", 'nativetongue'=>""),
     "KN" => array('name'=>"Saint Kitts and Nevis", 'nativetongue'=>""),
     "LC" => array('name'=>"Saint Lucia", 'nativetongue'=>""),
     "MF" => array('name'=>"Saint Martin", 'nativetongue'=>""),
     "PM" => array('name'=>"Saint Pierre and Miquelon", 'nativetongue'=>"Saint-Pierre-et-Miquelon"),
     "WS" => array('name'=>"Samoa", 'nativetongue'=>""),
     "SM" => array('name'=>"San Marino", 'nativetongue'=>""),
     "ST" => array('name'=>"São Tomé and Príncipe", 'nativetongue'=>"São Tomé e Príncipe"),
     "SA" => array('name'=>"Saudi Arabia", 'nativetongue'=>"‫المملكة العربية السعودية"),
     "SN" => array('name'=>"Senegal", 'nativetongue'=>"Sénégal"),
     "RS" => array('name'=>"Serbia", 'nativetongue'=>"Србија"),
     "SC" => array('name'=>"Seychelles", 'nativetongue'=>""),
     "SL" => array('name'=>"Sierra Leone", 'nativetongue'=>""),
     "SG" => array('name'=>"Singapore", 'nativetongue'=>""),
     "SX" => array('name'=>"Sint Maarten", 'nativetongue'=>""),
     "SK" => array('name'=>"Slovakia", 'nativetongue'=>"Slovensko"),
     "SI" => array('name'=>"Slovenia", 'nativetongue'=>"Slovenija"),
     "SB" => array('name'=>"Solomon Islands", 'nativetongue'=>""),
     "SO" => array('name'=>"Somalia", 'nativetongue'=>"Soomaaliya"),
     "ZA" => array('name'=>"South Africa", 'nativetongue'=>""),
     "GS" => array('name'=>"South Georgia & South Sandwich Islands", 'nativetongue'=>""),
     "KR" => array('name'=>"South Korea", 'nativetongue'=>"대한민국"),
     "SS" => array('name'=>"South Sudan", 'nativetongue'=>"‫جنوب السودان"),
     "ES" => array('name'=>"Spain", 'nativetongue'=>"España"),
     "LK" => array('name'=>"Sri Lanka", 'nativetongue'=>"ශ්‍රී ලංකාව"),
     "VC" => array('name'=>"St. Vincent & Grenadines", 'nativetongue'=>""),
     "SD" => array('name'=>"Sudan", 'nativetongue'=>"‫السودان"),
     "SR" => array('name'=>"Suriname", 'nativetongue'=>""),
     "SJ" => array('name'=>"Svalbard and Jan Mayen", 'nativetongue'=>"Svalbard og Jan Mayen"),
     "SZ" => array('name'=>"Swaziland", 'nativetongue'=>""),
     "SE" => array('name'=>"Sweden", 'nativetongue'=>"Sverige"),
     "CH" => array('name'=>"Switzerland", 'nativetongue'=>"Schweiz"),
     "SY" => array('name'=>"Syria", 'nativetongue'=>"‫سوريا"),
     "TW" => array('name'=>"Taiwan", 'nativetongue'=>"台灣"),
     "TJ" => array('name'=>"Tajikistan", 'nativetongue'=>""),
     "TZ" => array('name'=>"Tanzania", 'nativetongue'=>""),
     "TH" => array('name'=>"Thailand", 'nativetongue'=>"ไทย"),
     "TL" => array('name'=>"Timor-Leste", 'nativetongue'=>""),
     "TG" => array('name'=>"Togo", 'nativetongue'=>""),
     "TK" => array('name'=>"Tokelau", 'nativetongue'=>""),
     "TO" => array('name'=>"Tonga", 'nativetongue'=>""),
     "TT" => array('name'=>"Trinidad and Tobago", 'nativetongue'=>""),
     "TA" => array('name'=>"Tristan da Cunha", 'nativetongue'=>""),
     "TN" => array('name'=>"Tunisia", 'nativetongue'=>"‫تونس"),
     "TR" => array('name'=>"Turkey", 'nativetongue'=>"Türkiye"),
     "TM" => array('name'=>"Turkmenistan", 'nativetongue'=>""),
     "TC" => array('name'=>"Turks and Caicos Islands", 'nativetongue'=>""),
     "TV" => array('name'=>"Tuvalu", 'nativetongue'=>""),
     "UM" => array('name'=>"U.S. Outlying Islands", 'nativetongue'=>""),
     "VI" => array('name'=>"U.S. Virgin Islands", 'nativetongue'=>""),
     "UG" => array('name'=>"Uganda", 'nativetongue'=>""),
     "UA" => array('name'=>"Ukraine", 'nativetongue'=>"Україна"),
     "AE" => array('name'=>"United Arab Emirates", 'nativetongue'=>"‫الإمارات العربية المتحدة"),
     "GB" => array('name'=>"United Kingdom", 'nativetongue'=>""),
     "US" => array('name'=>"United States", 'nativetongue'=>""),
     "UY" => array('name'=>"Uruguay", 'nativetongue'=>""),
     "UZ" => array('name'=>"Uzbekistan", 'nativetongue'=>"Oʻzbekiston"),
     "VU" => array('name'=>"Vanuatu", 'nativetongue'=>""),
     "VA" => array('name'=>"Vatican City", 'nativetongue'=>"Città del Vaticano"),
     "VE" => array('name'=>"Venezuela", 'nativetongue'=>""),
     "VN" => array('name'=>"Vietnam", 'nativetongue'=>"Việt Nam"),
     "WF" => array('name'=>"Wallis and Futuna", 'nativetongue'=>""),
     "EH" => array('name'=>"Western Sahara", 'nativetongue'=>"‫الصحراء الغربية"),
     "YE" => array('name'=>"Yemen", 'nativetongue'=>"‫اليمن"),
     "ZM" => array('name'=>"Zambia", 'nativetongue'=>""),
     "ZW" => array('name'=>"Zimbabwe", 'nativetongue'=>"")
 ); 

Leave a Comment