-
-
Save vxnick/380904 to your computer and use it in GitHub Desktop.
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'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', | |
'IO' => 'British Indian Ocean Territory', | |
'BN' => 'Brunei Darussalam', | |
'BG' => 'Bulgaria', | |
'BF' => 'Burkina Faso', | |
'BI' => 'Burundi', | |
'KH' => 'Cambodia', | |
'CM' => 'Cameroon', | |
'CA' => 'Canada', | |
'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', | |
'CD' => 'Congo, Democratic Republic', | |
'CK' => 'Cook Islands', | |
'CR' => 'Costa Rica', | |
'CI' => 'Cote D\'Ivoire', | |
'HR' => 'Croatia', | |
'CU' => 'Cuba', | |
'CY' => 'Cyprus', | |
'CZ' => 'Czech Republic', | |
'DK' => 'Denmark', | |
'DJ' => 'Djibouti', | |
'DM' => 'Dominica', | |
'DO' => 'Dominican Republic', | |
'EC' => 'Ecuador', | |
'EG' => 'Egypt', | |
'SV' => 'El Salvador', | |
'GQ' => 'Equatorial Guinea', | |
'ER' => 'Eritrea', | |
'EE' => 'Estonia', | |
'ET' => 'Ethiopia', | |
'FK' => 'Falkland Islands (Malvinas)', | |
'FO' => 'Faroe Islands', | |
'FJ' => 'Fiji', | |
'FI' => 'Finland', | |
'FR' => 'France', | |
'GF' => 'French Guiana', | |
'PF' => 'French Polynesia', | |
'TF' => 'French Southern 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 & Mcdonald Islands', | |
'VA' => 'Holy See (Vatican City State)', | |
'HN' => 'Honduras', | |
'HK' => 'Hong Kong', | |
'HU' => 'Hungary', | |
'IS' => 'Iceland', | |
'IN' => 'India', | |
'ID' => 'Indonesia', | |
'IR' => 'Iran, Islamic Republic Of', | |
'IQ' => 'Iraq', | |
'IE' => 'Ireland', | |
'IM' => 'Isle Of Man', | |
'IL' => 'Israel', | |
'IT' => 'Italy', | |
'JM' => 'Jamaica', | |
'JP' => 'Japan', | |
'JE' => 'Jersey', | |
'JO' => 'Jordan', | |
'KZ' => 'Kazakhstan', | |
'KE' => 'Kenya', | |
'KI' => 'Kiribati', | |
'KR' => 'Korea', | |
'KW' => 'Kuwait', | |
'KG' => 'Kyrgyzstan', | |
'LA' => 'Lao People\'s Democratic Republic', | |
'LV' => 'Latvia', | |
'LB' => 'Lebanon', | |
'LS' => 'Lesotho', | |
'LR' => 'Liberia', | |
'LY' => 'Libyan Arab Jamahiriya', | |
'LI' => 'Liechtenstein', | |
'LT' => 'Lithuania', | |
'LU' => 'Luxembourg', | |
'MO' => 'Macao', | |
'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', | |
'MX' => 'Mexico', | |
'FM' => 'Micronesia, Federated States Of', | |
'MD' => 'Moldova', | |
'MC' => 'Monaco', | |
'MN' => 'Mongolia', | |
'ME' => 'Montenegro', | |
'MS' => 'Montserrat', | |
'MA' => 'Morocco', | |
'MZ' => 'Mozambique', | |
'MM' => 'Myanmar', | |
'NA' => 'Namibia', | |
'NR' => 'Nauru', | |
'NP' => 'Nepal', | |
'NL' => 'Netherlands', | |
'AN' => 'Netherlands Antilles', | |
'NC' => 'New Caledonia', | |
'NZ' => 'New Zealand', | |
'NI' => 'Nicaragua', | |
'NE' => 'Niger', | |
'NG' => 'Nigeria', | |
'NU' => 'Niue', | |
'NF' => 'Norfolk Island', | |
'MP' => 'Northern Mariana Islands', | |
'NO' => 'Norway', | |
'OM' => 'Oman', | |
'PK' => 'Pakistan', | |
'PW' => 'Palau', | |
'PS' => 'Palestinian Territory, Occupied', | |
'PA' => 'Panama', | |
'PG' => 'Papua New Guinea', | |
'PY' => 'Paraguay', | |
'PE' => 'Peru', | |
'PH' => 'Philippines', | |
'PN' => 'Pitcairn', | |
'PL' => 'Poland', | |
'PT' => 'Portugal', | |
'PR' => 'Puerto Rico', | |
'QA' => 'Qatar', | |
'RE' => 'Reunion', | |
'RO' => 'Romania', | |
'RU' => 'Russian Federation', | |
'RW' => 'Rwanda', | |
'BL' => 'Saint Barthelemy', | |
'SH' => 'Saint Helena', | |
'KN' => 'Saint Kitts And Nevis', | |
'LC' => 'Saint Lucia', | |
'MF' => 'Saint Martin', | |
'PM' => 'Saint Pierre And Miquelon', | |
'VC' => 'Saint Vincent And Grenadines', | |
'WS' => 'Samoa', | |
'SM' => 'San Marino', | |
'ST' => 'Sao Tome And Principe', | |
'SA' => 'Saudi Arabia', | |
'SN' => 'Senegal', | |
'RS' => 'Serbia', | |
'SC' => 'Seychelles', | |
'SL' => 'Sierra Leone', | |
'SG' => 'Singapore', | |
'SK' => 'Slovakia', | |
'SI' => 'Slovenia', | |
'SB' => 'Solomon Islands', | |
'SO' => 'Somalia', | |
'ZA' => 'South Africa', | |
'GS' => 'South Georgia And Sandwich Isl.', | |
'ES' => 'Spain', | |
'LK' => 'Sri Lanka', | |
'SD' => 'Sudan', | |
'SR' => 'Suriname', | |
'SJ' => 'Svalbard And Jan Mayen', | |
'SZ' => 'Swaziland', | |
'SE' => 'Sweden', | |
'CH' => 'Switzerland', | |
'SY' => 'Syrian Arab Republic', | |
'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', | |
'UG' => 'Uganda', | |
'UA' => 'Ukraine', | |
'AE' => 'United Arab Emirates', | |
'GB' => 'United Kingdom', | |
'US' => 'United States', | |
'UM' => 'United States Outlying Islands', | |
'UY' => 'Uruguay', | |
'UZ' => 'Uzbekistan', | |
'VU' => 'Vanuatu', | |
'VE' => 'Venezuela', | |
'VN' => 'Viet Nam', | |
'VG' => 'Virgin Islands, British', | |
'VI' => 'Virgin Islands, U.S.', | |
'WF' => 'Wallis And Futuna', | |
'EH' => 'Western Sahara', | |
'YE' => 'Yemen', | |
'ZM' => 'Zambia', | |
'ZW' => 'Zimbabwe', | |
); | |
?> |
JSON, combination of continents and 2 letter country codes
{
"Afghanistan": {
"continent": "Asia",
"code": "AF"
},
"Albania": {
"continent": "Europe",
"code": "AL"
},
"Algeria": {
"continent": "Africa",
"code": "DZ"
},
"American Samoa": {
"continent": "Oceania",
"code": "AS"
},
"Andorra": {
"continent": "Europe",
"code": "AD"
},
"Angola": {
"continent": "Africa",
"code": "AO"
},
"Anguilla": {
"continent": "North America",
"code": "AI"
},
"Antarctica": {
"continent": "Antarctica",
"code": "AQ"
},
"Antigua and Barbuda": {
"continent": "North America",
"code": "AG"
},
"Argentina": {
"continent": "South America",
"code": "AR"
},
"Armenia": {
"continent": "Asia",
"code": "AM"
},
"Aruba": {
"continent": "North America",
"code": "AW"
},
"Australia": {
"continent": "Oceania",
"code": "AU"
},
"Austria": {
"continent": "Europe",
"code": "AT"
},
"Azerbaijan": {
"continent": "Asia",
"code": "AZ"
},
"Bahamas": {
"continent": "North America",
"code": "BS"
},
"Bahrain": {
"continent": "Asia",
"code": "BH"
},
"Bangladesh": {
"continent": "Asia",
"code": "BD"
},
"Barbados": {
"continent": "North America",
"code": "BB"
},
"Belarus": {
"continent": "Europe",
"code": "BY"
},
"Belgium": {
"continent": "Europe",
"code": "BE"
},
"Belize": {
"continent": "North America",
"code": "BZ"
},
"Benin": {
"continent": "Africa",
"code": "BJ"
},
"Bermuda": {
"continent": "North America",
"code": "BM"
},
"Bhutan": {
"continent": "Asia",
"code": "BT"
},
"Bolivia": {
"continent": "South America",
"code": "BO"
},
"Bosnia and Herzegovina": {
"continent": "Europe",
"code": "BA"
},
"Botswana": {
"continent": "Africa",
"code": "BW"
},
"Bouvet Island": {
"continent": "Antarctica",
"code": "BV"
},
"Brazil": {
"continent": "South America",
"code": "BR"
},
"British Indian Ocean Territory": {
"continent": "Africa",
"code": "IO"
},
"Brunei": {
"continent": "Asia",
"code": "BN"
},
"Bulgaria": {
"continent": "Europe",
"code": "BG"
},
"Burkina Faso": {
"continent": "Africa",
"code": "BF"
},
"Burundi": {
"continent": "Africa",
"code": "BI"
},
"Cambodia": {
"continent": "Asia",
"code": "KH"
},
"Cameroon": {
"continent": "Africa",
"code": "CM"
},
"Canada": {
"continent": "North America",
"code": "CA"
},
"Cape Verde": {
"continent": "Africa",
"code": "CV"
},
"Cayman Islands": {
"continent": "North America",
"code": "KY"
},
"Central African Republic": {
"continent": "Africa",
"code": "CF"
},
"Chad": {
"continent": "Africa",
"code": "TD"
},
"Chile": {
"continent": "South America",
"code": "CL"
},
"China": {
"continent": "Asia",
"code": "CN"
},
"Christmas Island": {
"continent": "Oceania",
"code": "CX"
},
"Cocos (Keeling) Islands": {
"continent": "Oceania",
"code": "CC"
},
"Colombia": {
"continent": "South America",
"code": "CO"
},
"Comoros": {
"continent": "Africa",
"code": "KM"
},
"Congo (Democratic Republic)": {
"continent": "Africa",
"code": "CD"
},
"Congo (Republic)": {
"continent": "Africa",
"code": "CG"
},
"Cook Islands": {
"continent": "Oceania",
"code": "CK"
},
"Costa Rica": {
"continent": "North America",
"code": "CR"
},
"Croatia": {
"continent": "Europe",
"code": "HR"
},
"Cuba": {
"continent": "North America",
"code": "CU"
},
"Cyprus": {
"continent": "Asia",
"code": "CY"
},
"Czech Republic": {
"continent": "Europe",
"code": "CZ"
},
"Denmark": {
"continent": "Europe",
"code": "DK"
},
"Djibouti": {
"continent": "Africa",
"code": "DJ"
},
"Dominica": {
"continent": "North America",
"code": "DM"
},
"Dominican Republic": {
"continent": "North America",
"code": "DO"
},
"East Timor": {
"continent": "Asia",
"code": "TL"
},
"Ecuador": {
"continent": "South America",
"code": "EC"
},
"Egypt": {
"continent": "Africa",
"code": "EG"
},
"El Salvador": {
"continent": "North America",
"code": "SV"
},
"England": {
"continent": "Europe",
"code": "GB-ENG"
},
"Equatorial Guinea": {
"continent": "Africa",
"code": "GQ"
},
"Eritrea": {
"continent": "Africa",
"code": "ER"
},
"Estonia": {
"continent": "Europe",
"code": "EE"
},
"Ethiopia": {
"continent": "Africa",
"code": "ET"
},
"Falkland Islands": {
"continent": "South America",
"code": "FK"
},
"Faroe Islands": {
"continent": "Europe",
"code": "FO"
},
"Fiji Islands": {
"continent": "Oceania",
"code": "FJ"
},
"Finland": {
"continent": "Europe",
"code": "FI"
},
"France": {
"continent": "Europe",
"code": "FR"
},
"French Guiana": {
"continent": "South America",
"code": "GF"
},
"French Polynesia": {
"continent": "Oceania",
"code": "PF"
},
"French Southern Territories": {
"continent": "Antarctica",
"code": "TF"
},
"Gabon": {
"continent": "Africa",
"code": "GA"
},
"Gambia": {
"continent": "Africa",
"code": "GM"
},
"Georgia": {
"continent": "Asia",
"code": "GE"
},
"Germany": {
"continent": "Europe",
"code": "DE"
},
"Ghana": {
"continent": "Africa",
"code": "GH"
},
"Gibraltar": {
"continent": "Europe",
"code": "GI"
},
"Greece": {
"continent": "Europe",
"code": "GR"
},
"Greenland": {
"continent": "North America",
"code": "GL"
},
"Grenada": {
"continent": "North America",
"code": "GD"
},
"Guadeloupe": {
"continent": "North America",
"code": "GP"
},
"Guam": {
"continent": "Oceania",
"code": "GU"
},
"Guatemala": {
"continent": "North America",
"code": "GT"
},
"Guinea": {
"continent": "Africa",
"code": "GN"
},
"Guinea-Bissau": {
"continent": "Africa",
"code": "GW"
},
"Guyana": {
"continent": "South America",
"code": "GY"
},
"Haiti": {
"continent": "North America",
"code": "HT"
},
"Heard Island and McDonald Islands": {
"continent": "Antarctica",
"code": "HM"
},
"Vatican City State": {
"continent": "Europe",
"code": "VA"
},
"Honduras": {
"continent": "North America",
"code": "HN"
},
"Hong Kong": {
"continent": "Asia",
"code": "HK"
},
"Hungary": {
"continent": "Europe",
"code": "HU"
},
"Iceland": {
"continent": "Europe",
"code": "IS"
},
"India": {
"continent": "Asia",
"code": "IN"
},
"Indonesia": {
"continent": "Asia",
"code": "ID"
},
"Iran": {
"continent": "Asia",
"code": "IR"
},
"Iraq": {
"continent": "Asia",
"code": "IQ"
},
"Ireland (Republic)": {
"continent": "Europe",
"code": "IE"
},
"Israel": {
"continent": "Asia",
"code": "IL"
},
"Italy": {
"continent": "Europe",
"code": "IT"
},
"Ivory Coast": {
"continent": "Africa",
"code": "CI"
},
"Jamaica": {
"continent": "North America",
"code": "JM"
},
"Japan": {
"continent": "Asia",
"code": "JP"
},
"Jordan": {
"continent": "Asia",
"code": "JO"
},
"Kazakhstan": {
"continent": "Asia",
"code": "KZ"
},
"Kenya": {
"continent": "Africa",
"code": "KE"
},
"Kiribati": {
"continent": "Oceania",
"code": "KI"
},
"Kuwait": {
"continent": "Asia",
"code": "KW"
},
"Kyrgyzstan": {
"continent": "Asia",
"code": "KG"
},
"Laos": {
"continent": "Asia",
"code": "LA"
},
"Latvia": {
"continent": "Europe",
"code": "LV"
},
"Lebanon": {
"continent": "Asia",
"code": "LB"
},
"Lesotho": {
"continent": "Africa",
"code": "LS"
},
"Liberia": {
"continent": "Africa",
"code": "LR"
},
"Libyan Arab Jamahiriya": {
"continent": "Africa",
"code": "LY"
},
"Liechtenstein": {
"continent": "Europe",
"code": "LI"
},
"Lithuania": {
"continent": "Europe",
"code": "LT"
},
"Luxembourg": {
"continent": "Europe",
"code": "LU"
},
"Macao": {
"continent": "Asia",
"code": "MO"
},
"North Macedonia": {
"continent": "Europe",
"code": "MK"
},
"Madagascar": {
"continent": "Africa",
"code": "MG"
},
"Malawi": {
"continent": "Africa",
"code": "MW"
},
"Malaysia": {
"continent": "Asia",
"code": "MY"
},
"Maldives": {
"continent": "Asia",
"code": "MV"
},
"Mali": {
"continent": "Africa",
"code": "ML"
},
"Malta": {
"continent": "Europe",
"code": "MT"
},
"Marshall Islands": {
"continent": "Oceania",
"code": "MH"
},
"Martinique": {
"continent": "North America",
"code": "MQ"
},
"Mauritania": {
"continent": "Africa",
"code": "MR"
},
"Mauritius": {
"continent": "Africa",
"code": "MU"
},
"Mayotte": {
"continent": "Africa",
"code": "YT"
},
"Mexico": {
"continent": "North America",
"code": "MX"
},
"Micronesia, Federated States of": {
"continent": "Oceania",
"code": "FM"
},
"Moldova": {
"continent": "Europe",
"code": "MD"
},
"Monaco": {
"continent": "Europe",
"code": "MC"
},
"Mongolia": {
"continent": "Asia",
"code": "MN"
},
"Montenegro": {
"continent": "Europe",
"code": "ME"
},
"Montserrat": {
"continent": "North America",
"code": "MS"
},
"Morocco": {
"continent": "Africa",
"code": "MA"
},
"Mozambique": {
"continent": "Africa",
"code": "MZ"
},
"Myanmar": {
"continent": "Asia",
"code": "MM"
},
"Namibia": {
"continent": "Africa",
"code": "NA"
},
"Nauru": {
"continent": "Oceania",
"code": "NR"
},
"Nepal": {
"continent": "Asia",
"code": "NP"
},
"Netherlands": {
"continent": "Europe",
"code": "NL"
},
"Netherlands Antilles": {
"continent": "North America",
"code": "AN"
},
"New Caledonia": {
"continent": "Oceania",
"code": "NC"
},
"New Zealand": {
"continent": "Oceania",
"code": "NZ"
},
"Nicaragua": {
"continent": "North America",
"code": "NI"
},
"Niger": {
"continent": "Africa",
"code": "NE"
},
"Nigeria": {
"continent": "Africa",
"code": "NG"
},
"Niue": {
"continent": "Oceania",
"code": "NU"
},
"Norfolk Island": {
"continent": "Oceania",
"code": "NF"
},
"North Korea": {
"continent": "Asia",
"code": "KP"
},
"Northern Ireland": {
"continent": "Europe",
"code": "GB-NIR"
},
"Northern Mariana Islands": {
"continent": "Oceania",
"code": "MP"
},
"Norway": {
"continent": "Europe",
"code": "NO"
},
"Oman": {
"continent": "Asia",
"code": "OM"
},
"Pakistan": {
"continent": "Asia",
"code": "PK"
},
"Palau": {
"continent": "Oceania",
"code": "PW"
},
"Panama": {
"continent": "North America",
"code": "PA"
},
"Papua New Guinea": {
"continent": "Oceania",
"code": "PG"
},
"Paraguay": {
"continent": "South America",
"code": "PY"
},
"Peru": {
"continent": "South America",
"code": "PE"
},
"Philippines": {
"continent": "Asia",
"code": "PH"
},
"Pitcairn": {
"continent": "Oceania",
"code": "PN"
},
"Poland": {
"continent": "Europe",
"code": "PL"
},
"Portugal": {
"continent": "Europe",
"code": "PT"
},
"Puerto Rico": {
"continent": "North America",
"code": "PR"
},
"Qatar": {
"continent": "Asia",
"code": "QA"
},
"Reunion": {
"continent": "Africa",
"code": "RE"
},
"Romania": {
"continent": "Europe",
"code": "RO"
},
"Russian Federation": {
"continent": "Europe",
"code": "RU"
},
"Rwanda": {
"continent": "Africa",
"code": "RW"
},
"Saint Helena": {
"continent": "Africa",
"code": "SH"
},
"Saint Kitts and Nevis": {
"continent": "North America",
"code": "KN"
},
"Saint Lucia": {
"continent": "North America",
"code": "LC"
},
"Saint Pierre and Miquelon": {
"continent": "North America",
"code": "PM"
},
"Saint Vincent and the Grenadines": {
"continent": "North America",
"code": "VC"
},
"Samoa": {
"continent": "Oceania",
"code": "WS"
},
"San Marino": {
"continent": "Europe",
"code": "SM"
},
"Sao Tome and Principe": {
"continent": "Africa",
"code": "ST"
},
"Saudi Arabia": {
"continent": "Asia",
"code": "SA"
},
"Scotland": {
"continent": "Europe",
"code": "GB"
},
"Senegal": {
"continent": "Africa",
"code": "SN"
},
"Serbia": {
"continent": "Europe",
"code": "RS"
},
"Seychelles": {
"continent": "Africa",
"code": "SC"
},
"Sierra Leone": {
"continent": "Africa",
"code": "SL"
},
"Singapore": {
"continent": "Asia",
"code": "SG"
},
"Slovakia": {
"continent": "Europe",
"code": "SK"
},
"Slovenia": {
"continent": "Europe",
"code": "SI"
},
"Solomon Islands": {
"continent": "Oceania",
"code": "SB"
},
"Somalia": {
"continent": "Africa",
"code": "SO"
},
"South Africa": {
"continent": "Africa",
"code": "ZA"
},
"South Georgia and the South Sandwich Islands": {
"continent": "Antarctica",
"code": "GS"
},
"South Korea": {
"continent": "Asia",
"code": "KR"
},
"South Sudan": {
"continent": "Africa",
"code": "SS"
},
"Spain": {
"continent": "Europe",
"code": "ES"
},
"Sri Lanka": {
"continent": "Asia",
"code": "LK"
},
"Sudan": {
"continent": "Africa",
"code": "SD"
},
"Suriname": {
"continent": "South America",
"code": "SR"
},
"Svalbard and Jan Mayen": {
"continent": "Europe",
"code": "SJ"
},
"Swaziland": {
"continent": "Africa",
"code": "SZ"
},
"Sweden": {
"continent": "Europe",
"code": "SE"
},
"Switzerland": {
"continent": "Europe",
"code": "CH"
},
"Syria": {
"continent": "Asia",
"code": "SY"
},
"Tajikistan": {
"continent": "Asia",
"code": "TJ"
},
"Tanzania": {
"continent": "Africa",
"code": "TZ"
},
"Thailand": {
"continent": "Asia",
"code": "TH"
},
"Togo": {
"continent": "Africa",
"code": "TG"
},
"Tokelau": {
"continent": "Oceania",
"code": "TK"
},
"Tonga": {
"continent": "Oceania",
"code": "TO"
},
"Trinidad and Tobago": {
"continent": "North America",
"code": "TT"
},
"Tunisia": {
"continent": "Africa",
"code": "TN"
},
"Turkey": {
"continent": "Asia",
"code": "TR"
},
"Turkmenistan": {
"continent": "Asia",
"code": "TM"
},
"Turks and Caicos Islands": {
"continent": "North America",
"code": "TC"
},
"Tuvalu": {
"continent": "Oceania",
"code": "TV"
},
"Uganda": {
"continent": "Africa",
"code": "UG"
},
"Ukraine": {
"continent": "Europe",
"code": "UA"
},
"United Arab Emirates": {
"continent": "Asia",
"code": "AE"
},
"United Kingdom": {
"continent": "Europe",
"code": "GB"
},
"United States": {
"continent": "North America",
"code": "US"
},
"United States Minor Outlying Islands": {
"continent": "Oceania",
"code": "UM"
},
"Uruguay": {
"continent": "South America",
"code": "UY"
},
"Uzbekistan": {
"continent": "Asia",
"code": "UZ"
},
"Vanuatu": {
"continent": "Oceania",
"code": "VU"
},
"Venezuela": {
"continent": "South America",
"code": "VE"
},
"Vietnam": {
"continent": "Asia",
"code": "VN"
},
"Virgin Islands (British)": {
"continent": "North America",
"code": "VG"
},
"Virgin Islands (US)": {
"continent": "North America",
"code": "VI"
},
"Wales": {
"continent": "Europe",
"code": "GB"
},
"Wallis and Futuna": {
"continent": "Oceania",
"code": "WF"
},
"Western Sahara": {
"continent": "Africa",
"code": "EH"
},
"Yemen": {
"continent": "Asia",
"code": "YE"
},
"Zambia": {
"continent": "Africa",
"code": "ZM"
},
"Zimbabwe": {
"continent": "Africa",
"code": "ZW"
}
}
This gist is so funny, it's just lines upon lines of text in different formats
Very helpful too!
Pretty useless now with the AI's around :(
Just again yesterday I was on a site where they had a dropdown with country values that none of their customers will ever use. The issue isn't getting the list, it's that developers get crappy requirements.
Thank you, this is what I was looking for especially because of the phone codes.