Created
May 30, 2017 00:03
-
-
Save behzod/48eacc0d5a3c108f1f5c30d9baea0c49 to your computer and use it in GitHub Desktop.
Countries array in PHP with 2 letter ISO codes and names
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 | |
// Pulled from http://api.worldbank.org/countries?format=json&page=1&per_page=500 | |
const CI_COUNTRIES_ARRAY = array ( | |
'AW' => 'Aruba', | |
'AF' => 'Afghanistan', | |
'AO' => 'Angola', | |
'AL' => 'Albania', | |
'AD' => 'Andorra', | |
'AE' => 'United Arab Emirates', | |
'AR' => 'Argentina', | |
'AM' => 'Armenia', | |
'AS' => 'American Samoa', | |
'AG' => 'Antigua and Barbuda', | |
'AU' => 'Australia', | |
'AT' => 'Austria', | |
'AZ' => 'Azerbaijan', | |
'BI' => 'Burundi', | |
'BE' => 'Belgium', | |
'BJ' => 'Benin', | |
'BF' => 'Burkina Faso', | |
'BD' => 'Bangladesh', | |
'BG' => 'Bulgaria', | |
'BH' => 'Bahrain', | |
'BS' => 'Bahamas, The', | |
'BA' => 'Bosnia and Herzegovina', | |
'BY' => 'Belarus', | |
'BZ' => 'Belize', | |
'BM' => 'Bermuda', | |
'BO' => 'Bolivia', | |
'BR' => 'Brazil', | |
'BB' => 'Barbados', | |
'BN' => 'Brunei Darussalam', | |
'BT' => 'Bhutan', | |
'BW' => 'Botswana', | |
'CF' => 'Central African Republic', | |
'CA' => 'Canada', | |
'CH' => 'Switzerland', | |
'JG' => 'Channel Islands', | |
'CL' => 'Chile', | |
'CN' => 'China', | |
'CI' => 'Cote d\'Ivoire', | |
'CM' => 'Cameroon', | |
'CD' => 'Congo, Dem. Rep.', | |
'CG' => 'Congo, Rep.', | |
'CO' => 'Colombia', | |
'KM' => 'Comoros', | |
'CV' => 'Cabo Verde', | |
'CR' => 'Costa Rica', | |
'CU' => 'Cuba', | |
'CW' => 'Curacao', | |
'KY' => 'Cayman Islands', | |
'CY' => 'Cyprus', | |
'CZ' => 'Czech Republic', | |
'DE' => 'Germany', | |
'DJ' => 'Djibouti', | |
'DM' => 'Dominica', | |
'DK' => 'Denmark', | |
'DO' => 'Dominican Republic', | |
'DZ' => 'Algeria', | |
'EC' => 'Ecuador', | |
'EG' => 'Egypt, Arab Rep.', | |
'ER' => 'Eritrea', | |
'ES' => 'Spain', | |
'EE' => 'Estonia', | |
'ET' => 'Ethiopia', | |
'FI' => 'Finland', | |
'FJ' => 'Fiji', | |
'FR' => 'France', | |
'FO' => 'Faroe Islands', | |
'FM' => 'Micronesia, Fed. Sts.', | |
'GA' => 'Gabon', | |
'GB' => 'United Kingdom', | |
'GE' => 'Georgia', | |
'GH' => 'Ghana', | |
'GI' => 'Gibraltar', | |
'GN' => 'Guinea', | |
'GM' => 'Gambia, The', | |
'GW' => 'Guinea-Bissau', | |
'GQ' => 'Equatorial Guinea', | |
'GR' => 'Greece', | |
'GD' => 'Grenada', | |
'GL' => 'Greenland', | |
'GT' => 'Guatemala', | |
'GU' => 'Guam', | |
'GY' => 'Guyana', | |
'HK' => 'Hong Kong SAR, China', | |
'HN' => 'Honduras', | |
'HR' => 'Croatia', | |
'HT' => 'Haiti', | |
'HU' => 'Hungary', | |
'ID' => 'Indonesia', | |
'IM' => 'Isle of Man', | |
'IN' => 'India', | |
'IE' => 'Ireland', | |
'IR' => 'Iran, Islamic Rep.', | |
'IQ' => 'Iraq', | |
'IS' => 'Iceland', | |
'IL' => 'Israel', | |
'IT' => 'Italy', | |
'JM' => 'Jamaica', | |
'JO' => 'Jordan', | |
'JP' => 'Japan', | |
'KZ' => 'Kazakhstan', | |
'KE' => 'Kenya', | |
'KG' => 'Kyrgyz Republic', | |
'KH' => 'Cambodia', | |
'KI' => 'Kiribati', | |
'KN' => 'St. Kitts and Nevis', | |
'KR' => 'Korea, Rep.', | |
'KW' => 'Kuwait', | |
'LA' => 'Lao PDR', | |
'LB' => 'Lebanon', | |
'LR' => 'Liberia', | |
'LY' => 'Libya', | |
'LC' => 'St. Lucia', | |
'LI' => 'Liechtenstein', | |
'LK' => 'Sri Lanka', | |
'LS' => 'Lesotho', | |
'LT' => 'Lithuania', | |
'LU' => 'Luxembourg', | |
'LV' => 'Latvia', | |
'MO' => 'Macao SAR, China', | |
'MF' => 'St. Martin (French part)', | |
'MA' => 'Morocco', | |
'MC' => 'Monaco', | |
'MD' => 'Moldova', | |
'MG' => 'Madagascar', | |
'MV' => 'Maldives', | |
'MX' => 'Mexico', | |
'MH' => 'Marshall Islands', | |
'MK' => 'Macedonia, FYR', | |
'ML' => 'Mali', | |
'MT' => 'Malta', | |
'MM' => 'Myanmar', | |
'ME' => 'Montenegro', | |
'MN' => 'Mongolia', | |
'MP' => 'Northern Mariana Islands', | |
'MZ' => 'Mozambique', | |
'MR' => 'Mauritania', | |
'MU' => 'Mauritius', | |
'MW' => 'Malawi', | |
'MY' => 'Malaysia', | |
'NA' => 'Namibia', | |
'NC' => 'New Caledonia', | |
'NE' => 'Niger', | |
'NG' => 'Nigeria', | |
'NI' => 'Nicaragua', | |
'NL' => 'Netherlands', | |
'NO' => 'Norway', | |
'NP' => 'Nepal', | |
'NR' => 'Nauru', | |
'NZ' => 'New Zealand', | |
'OM' => 'Oman', | |
'PK' => 'Pakistan', | |
'PA' => 'Panama', | |
'PE' => 'Peru', | |
'PH' => 'Philippines', | |
'PW' => 'Palau', | |
'PG' => 'Papua New Guinea', | |
'PL' => 'Poland', | |
'PR' => 'Puerto Rico', | |
'KP' => 'Korea, Dem. People’s Rep.', | |
'PT' => 'Portugal', | |
'PY' => 'Paraguay', | |
'PS' => 'West Bank and Gaza', | |
'PF' => 'French Polynesia', | |
'QA' => 'Qatar', | |
'RO' => 'Romania', | |
'RU' => 'Russian Federation', | |
'RW' => 'Rwanda', | |
'SA' => 'Saudi Arabia', | |
'SD' => 'Sudan', | |
'SN' => 'Senegal', | |
'SG' => 'Singapore', | |
'SB' => 'Solomon Islands', | |
'SL' => 'Sierra Leone', | |
'SV' => 'El Salvador', | |
'SM' => 'San Marino', | |
'SO' => 'Somalia', | |
'RS' => 'Serbia', | |
'SS' => 'South Sudan', | |
'ST' => 'Sao Tome and Principe', | |
'SR' => 'Suriname', | |
'SK' => 'Slovak Republic', | |
'SI' => 'Slovenia', | |
'SE' => 'Sweden', | |
'SZ' => 'Swaziland', | |
'SX' => 'Sint Maarten (Dutch part)', | |
'SC' => 'Seychelles', | |
'SY' => 'Syrian Arab Republic', | |
'TC' => 'Turks and Caicos Islands', | |
'TD' => 'Chad', | |
'TG' => 'Togo', | |
'TH' => 'Thailand', | |
'TJ' => 'Tajikistan', | |
'TM' => 'Turkmenistan', | |
'TL' => 'Timor-Leste', | |
'TO' => 'Tonga', | |
'TT' => 'Trinidad and Tobago', | |
'TN' => 'Tunisia', | |
'TR' => 'Turkey', | |
'TV' => 'Tuvalu', | |
'TW' => 'Taiwan, China', | |
'TZ' => 'Tanzania', | |
'UG' => 'Uganda', | |
'UA' => 'Ukraine', | |
'UY' => 'Uruguay', | |
'US' => 'United States', | |
'UZ' => 'Uzbekistan', | |
'VC' => 'St. Vincent and the Grenadines', | |
'VE' => 'Venezuela, RB', | |
'VG' => 'British Virgin Islands', | |
'VI' => 'Virgin Islands (U.S.)', | |
'VN' => 'Vietnam', | |
'VU' => 'Vanuatu', | |
'WS' => 'Samoa', | |
'XK' => 'Kosovo', | |
'YE' => 'Yemen, Rep.', | |
'ZA' => 'South Africa', | |
'ZM' => 'Zambia', | |
'ZW' => 'Zimbabwe', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment