Created
July 2, 2012 17:50
-
-
Save djaiss/3034558 to your computer and use it in GitHub Desktop.
PHP - List of countries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = | |
array( | |
"ae" => "United Arab Emirates", | |
"ao" => "Angola", | |
"bf" => "Burkina Faso", | |
"bi" => "Burundi", | |
"bj" => "Benin", | |
"bw" => "Botswana", | |
"cd" => "Democratic Republic Congo", | |
"cf" => "Central African Republic", | |
"cg" => "Congo", | |
"ci" => "Côte d'Ivoire", | |
"cm" => "Cameroon", | |
"cv" => "Cape Verde", | |
"dj" => "Djibouti", | |
"dz" => "Algeria", | |
"eg" => "Egypt", | |
"eh" => "Western Sahara", | |
"er" => "Eritrea", | |
"et" => "Ethiopia", | |
"ga" => "Gabon", | |
"gh" => "Ghana", | |
"gm" => "Gambia", | |
"gn" => "Guinea", | |
"gq" => "Equatorial Guinea", | |
"gw" => "Guinea-Bissau", | |
"ke" => "Kenya", | |
"km" => "Comoros", | |
"lr" => "Liberia", | |
"ls" => "Lesotho", | |
"ly" => "Libya", | |
"ma" => "Morocco", | |
"mg" => "Madagascar", | |
"ml" => "Mali", | |
"mr" => "Mauritania", | |
"mu" => "Mauritius", | |
"mw" => "Malawi", | |
"mz" => "Mozambique", | |
"na" => "Namibia", | |
"ne" => "Niger", | |
"ng" => "Nigeria", | |
"re" => "Réunion", | |
"rw" => "Rwanda", | |
"sc" => "Seychelles", | |
"sd" => "Sudan", | |
"sh" => "Saint Helena, Ascension and Tristan da Cunha", | |
"sl" => "Sierra Leone", | |
"sn" => "Senegal", | |
"so" => "Somalia", | |
"ss" => "South Sudan", | |
"st" => "Sao Tome and Principe", | |
"sz" => "Swaziland", | |
"td" => "Chad", | |
"tg" => "Togo", | |
"tn" => "Tunisia", | |
"tz" => "Tanzania", | |
"ug" => "Uganda", | |
"yt" => "Mayotte", | |
"za" => "South Africa", | |
"zm" => "Zambia", | |
"zw" => "Zimbabwe", | |
"af" => "Afghanistan", | |
"am" => "Armenia", | |
"aq" => "Antartica", | |
"az" => "Azerbaijan", | |
"bd" => "Bangladesh", | |
"bh" => "Bahrain", | |
"bn" => "Brunei Darussalam", | |
"bt" => "Bhutan", | |
"bv" => "Bouvet Island", | |
"cc" => "Cocos (Keeling) Islands", | |
"cn" => "China", | |
"ct" => "Cyprus", | |
"cx" => "Christmas Island", | |
"ge" => "Georgia", | |
"gs" => "South Georgia and the South Sandwich Islands", | |
"hk" => "Hong Kong", | |
"hm" => "Heard Island and McDonald Islands", | |
"id" => "Indonesia", | |
"il" => "Israel", | |
"io" => "British Indian Ocean Territory", | |
"in" => "India", | |
"iq" => "Iraq", | |
"ir" => "Iran", | |
"jo" => "Jordan", | |
"jp" => "Japan", | |
"kg" => "Kyrgyzstan", | |
"kh" => "Cambodia", | |
"kp" => "North Korea", | |
"kr" => "South Korea", | |
"kw" => "Kuwait", | |
"kz" => "Kazakhstan", | |
"la" => "Lao People Democratic Republic", | |
"lb" => "Lebanon", | |
"lk" => "Sri Lanka", | |
"mm" => "Myanmar", | |
"mn" => "Mongolia", | |
"mo" => "Macao", | |
"mv" => "Maldives", | |
"my" => "Malaysia", | |
"nc" => "New Caledonia", | |
"np" => "Nepal", | |
"om" => "Oman", | |
"ph" => "Philippines", | |
"pk" => "Pakistan", | |
"qa" => "Qatar", | |
"ru" => "Russian federation", | |
"sa" => "Saudi Arabia", | |
"sg" => "Singapore", | |
"sr" => "Suriname", | |
"sy" => "Syrian Arab Republic", | |
"tf" => "French Southern Territories", | |
"th" => "Thailand", | |
"tj" => "Tajikistan", | |
"tl" => "Timor-Leste", | |
"tm" => "Turkmenistan", | |
"tr" => "Turkey", | |
"tw" => "Taiwan", | |
"uz" => "Uzbekistan", | |
"vn" => "Viet Nam", | |
"ye" => "Yemen", | |
"ad" => "Andorra", | |
"al" => "Albania", | |
"at" => "Austria", | |
"ax" => "Aland Islands", | |
"ba" => "Bosnia and Herzegovina", | |
"be" => "Belgium", | |
"bg" => "Bulgaria", | |
"by" => "Belarus", | |
"ch" => "Switzerland", | |
"cz" => "Czech Republic", | |
"de" => "Germany", | |
"dk" => "Denmark", | |
"ee" => "Estonia", | |
"es" => "Spain", | |
"fi" => "Finland", | |
"fr" => "France", | |
"fo" => "Faroe Islands", | |
"gb" => "United Kingdom", | |
"gg" => "Guernsey", | |
"gi" => "Gibraltar", | |
"gr" => "Greece", | |
"hr" => "Croatia", | |
"hu" => "Hungary", | |
"ie" => "Ireland", | |
"im" => "Isle of Man", | |
"is" => "Iceland", | |
"it" => "Italy", | |
"li" => "Liechtenstein", | |
"lt" => "Lithuania", | |
"lu" => "Luxembourg", | |
"lv" => "Latvia", | |
"mc" => "Monaco", | |
"md" => "Moldova", | |
"me" => "Montenegro", | |
"mk" => "Macedonia", | |
"mt" => "Malta", | |
"nl" => "Netherlands", | |
"no" => "Norway", | |
"pl" => "Poland", | |
"pt" => "Portugal", | |
"ro" => "Romania", | |
"rs" => "Serbia", | |
"se" => "Sweden", | |
"si" => "Slovenia", | |
"sj" => "Svalbard and Jan Mayen", | |
"sk" => "Slovakia", | |
"sm" => "San Marino", | |
"ua" => "Ukraine", | |
"va" => "Vatican City State", | |
"ag" => "Antigua and Barbuda", | |
"ai" => "Anguilla", | |
"aw" => "Aruba", | |
"bb" => "Barbados", | |
"bl" => "Saint Barthélemy", | |
"bm" => "Bermuda", | |
"bq" => "Bonaire Sint Eustatius and Saba", | |
"bs" => "Bahamas", | |
"bz" => "Belize", | |
"ca" => "Canada", | |
"cr" => "Costa Rica", | |
"cu" => "Cuba", | |
"cw" => "Curaçao", | |
"dm" => "Dominica", | |
"do" => "Dominican Republic", | |
"gd" => "Grenada", | |
"gl" => "Greenland", | |
"gp" => "Guadeloupe", | |
"gt" => "Guatemala", | |
"hn" => "Honduras", | |
"ht" => "Haiti", | |
"jm" => "Jamaica", | |
"kn" => "Saint Kitts and Nevis", | |
"ky" => "Cayman Islands", | |
"lc" => "Saint Lucia", | |
"mf" => "Saint Martin (french)", | |
"mq" => "Martinique", | |
"ms" => "Montserrat", | |
"mx" => "Mexico", | |
"pa" => "Panama", | |
"pm" => "Saint Pierre and Miquelon", | |
"pr" => "Puerto Rico", | |
"sv" => "El Salvador", | |
"sx" => "Sint Maarten", | |
"tc" => "Turks and Caicos Islands", | |
"tt" => "Trinidad and Tobago", | |
"us" => "United States", | |
"vc" => "Saint Vincent and the Grenadines", | |
"vg" => "Virgin Islands - British", | |
"vi" => "Virgin Islands US", | |
"as" => "American Samoa", | |
"au" => "Australia", | |
"ck" => "Cook Islands", | |
"fj" => "Fiji", | |
"gu" => "Guam", | |
"ki" => "Kiribati", | |
"nf" => "Norfolk Island", | |
"nr" => "Nauru", | |
"nu" => "Niue", | |
"nz" => "New Zealand", | |
"pf" => "French Polynesia", | |
"pg" => "Papua New Guinea", | |
"pn" => "Pitcairn", | |
"pw" => "Palau", | |
"sb" => "Solomon Islands", | |
"tk" => "Tokelau", | |
"to" => "Tonga", | |
"vu" => "Vanuatu", | |
"wf" => "Wallis and Futuna", | |
"ws" => "Samoa", | |
"ar" => "Argentina", | |
"bo" => "Bolivia", | |
"br" => "Brazil", | |
"cl" => "Chile", | |
"co" => "Colombia", | |
"ec" => "Ecuador", | |
"fk" => "Falkland Islands", | |
"gf" => "French Guiana", | |
"gy" => "Guyana", | |
"ni" => "Nicaragua", | |
"pe" => "Peru", | |
"py" => "Paraguay", | |
"uy" => "Uruguay", | |
"ve" => "Venezuela", | |
"us" => "United States" | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment