28 May 2014

PHP array of iso country list. This list includes Kosovo (KV) and Democratic People's Republic of Korea (KP). That I found hard to find from somewhere else.

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