A PHP Array Of Countries And ISO3166 Codes
Here is a handy list you can copy and paste with all countries and thier two letter iso 3661 codes, used by most payment processors as the company identification codes. Ideal for building drop down lists or tables.
PHP Code:
$countiresArray[] = array('CountryName'=>'AFGHANISTAN','Code'=>'AF');
$countiresArray[] = array('CountryName'=>'ÅLAND ISLANDS','Code','Code'=>'AX');
$countiresArray[] = array('CountryName'=>'ALBANIA','Code'=>'AL');
$countiresArray[] = array('CountryName'=>'ALGERIA','Code'=>'DZ');
$countiresArray[] = array('CountryName'=>'AMERICAN SAMOA','Code'=>'AS');
$countiresArray[] = array('CountryName'=>'ANDORRA','Code'=>'AD');
$countiresArray[] = array('CountryName'=>'ANGOLA','Code'=>'AO');
$countiresArray[] = array('CountryName'=>'ANGUILLA','Code'=>'AI');
$countiresArray[] = array('CountryName'=>'ANTARCTICA','Code'=>'AQ');
$countiresArray[] = array('CountryName'=>'ANTIGUA AND BARBUDA','Code'=>'AG');
$countiresArray[] = array('CountryName'=>'ARGENTINA','Code'=>'AR');
$countiresArray[] = array('CountryName'=>'ARMENIA','Code'=>'AM');
$countiresArray[] = array('CountryName'=>'ARUBA','Code'=>'AW');
$countiresArray[] = array('CountryName'=>'AUSTRALIA','Code'=>'AU');
$countiresArray[] = array('CountryName'=>'AUSTRIA','Code'=>'AT');
$countiresArray[] = array('CountryName'=>'AZERBAIJAN','Code'=>'AZ');
$countiresArray[] = array('CountryName'=>'BAHAMAS','Code'=>'BS');
$countiresArray[] = array('CountryName'=>'BAHRAIN','Code'=>'BH');
$countiresArray[] = array('CountryName'=>'BANGLADESH','Code'=>'BD');
$countiresArray[] = array('CountryName'=>'BARBADOS','Code'=>'BB');
$countiresArray[] = array('CountryName'=>'BELGIUM','Code'=>'BE');
$countiresArray[] = array('CountryName'=>'BELIZE','Code'=>'BZ');
$countiresArray[] = array('CountryName'=>'BENIN','Code'=>'BJ');
$countiresArray[] = array('CountryName'=>'BERMUDA','Code'=>'BM');
$countiresArray[] = array('CountryName'=>'BHUTAN','Code'=>'BT');
$countiresArray[] = array('CountryName'=>'BOLIVIA, PLURINATIONAL STATE OF','Code'=>'BO');
$countiresArray[] = array('CountryName'=>'BONAIRE, SINT EUSTATIUS AND SABA','Code'=>'BQ');
$countiresArray[] = array('CountryName'=>'BOSNIA AND HERZEGOVINA','Code'=>'BA');
$countiresArray[] = array('CountryName'=>'BOTSWANA','Code'=>'BW');
$countiresArray[] = array('CountryName'=>'BOUVET ISLAND','Code'=>'BV');
$countiresArray[] = array('CountryName'=>'BRAZIL','Code'=>'BR');
$countiresArray[] = array('CountryName'=>'BRITISH INDIAN OCEAN TERRITORY','Code'=>'IO');
$countiresArray[] = array('CountryName'=>'BRUNEI DARUSSALAM','Code'=>'BN');
$countiresArray[] = array('CountryName'=>'BULGARIA','Code'=>'BG');
$countiresArray[] = array('CountryName'=>'BURKINA FASO','Code'=>'BF');
$countiresArray[] = array('CountryName'=>'BURUNDI','Code'=>'BI');
$countiresArray[] = array('CountryName'=>'CAMBODIA','Code'=>'KH');
$countiresArray[] = array('CountryName'=>'CAMEROON','Code'=>'CM');
$countiresArray[] = array('CountryName'=>'CANADA','Code'=>'CA');
$countiresArray[] = array('CountryName'=>'CAPE VERDE','Code'=>'CV');
$countiresArray[] = array('CountryName'=>'CAYMAN ISLANDS','Code'=>'KY');
$countiresArray[] = array('CountryName'=>'CENTRAL AFRICAN REPUBLIC','Code'=>'CF');
$countiresArray[] = array('CountryName'=>'CHAD','Code'=>'TD');
$countiresArray[] = array('CountryName'=>'CHILE','Code'=>'CL');
$countiresArray[] = array('CountryName'=>'CHINA','Code'=>'CN');
$countiresArray[] = array('CountryName'=>'CHRISTMAS ISLAND','Code'=>'CX');
$countiresArray[] = array('CountryName'=>'COCOS (KEELING) ISLANDS','Code'=>'CC');
$countiresArray[] = array('CountryName'=>'COLOMBIA','Code'=>'CO');
$countiresArray[] = array('CountryName'=>'COMOROS','Code'=>'KM');
$countiresArray[] = array('CountryName'=>'CONGO','Code'=>'CG');
$countiresArray[] = array('CountryName'=>'CONGO, THE DEMOCRATIC REPUBLIC OF THE','Code'=>'CD');
$countiresArray[] = array('CountryName'=>'COOK ISLANDS','Code'=>'CK');
$countiresArray[] = array('CountryName'=>'COSTA RICA','Code'=>'CR');
$countiresArray[] = array('CountryName'=>'CÔTE D'IVOIRE','Code'=>'CI');
$countiresArray[] = array('CountryName'=>'CROATIA','Code'=>'HR');
$countiresArray[] = array('CountryName'=>'CUBA','Code'=>'CU');
$countiresArray[] = array('CountryName'=>'CURAÇAO','Code'=>'CW');
$countiresArray[] = array('CountryName'=>'CYPRUS','Code'=>'CY');
$countiresArray[] = array('CountryName'=>'CZECH REPUBLIC','Code'=>'CZ');
$countiresArray[] = array('CountryName'=>'DENMARK','Code'=>'DK');
$countiresArray[] = array('CountryName'=>'DJIBOUTI','Code'=>'DJ');
$countiresArray[] = array('CountryName'=>'DOMINICA','Code'=>'DM');
$countiresArray[] = array('CountryName'=>'DOMINICAN REPUBLIC','Code'=>'DO');
$countiresArray[] = array('CountryName'=>'ECUADOR','Code'=>'EC');
$countiresArray[] = array('CountryName'=>'EGYPT','Code'=>'EG');
$countiresArray[] = array('CountryName'=>'EL SALVADOR','Code'=>'SV');
$countiresArray[] = array('CountryName'=>'EQUATORIAL GUINEA','Code'=>'GQ');
$countiresArray[] = array('CountryName'=>'ERITREA','Code'=>'ER');
$countiresArray[] = array('CountryName'=>'ESTONIA','Code'=>'EE');
$countiresArray[] = array('CountryName'=>'ETHIOPIA','Code'=>'ET');
$countiresArray[] = array('CountryName'=>'FALKLAND ISLANDS (MALVINAS)','Code'=>'FK');
$countiresArray[] = array('CountryName'=>'FAROE ISLANDS','Code'=>'FO');
$countiresArray[] = array('CountryName'=>'FIJI','Code'=>'FJ');
$countiresArray[] = array('CountryName'=>'FINLAND','Code'=>'FI');
$countiresArray[] = array('CountryName'=>'FRANCE','Code'=>'FR');
$countiresArray[] = array('CountryName'=>'FRENCH GUIANA','Code'=>'GF');
$countiresArray[] = array('CountryName'=>'FRENCH POLYNESIA','Code'=>'PF');
$countiresArray[] = array('CountryName'=>'FRENCH SOUTHERN TERRITORIES','Code'=>'TF');
$countiresArray[] = array('CountryName'=>'GABON','Code'=>'GA');
$countiresArray[] = array('CountryName'=>'GAMBIA','Code'=>'GM');
$countiresArray[] = array('CountryName'=>'GEORGIA','Code'=>'GE');
$countiresArray[] = array('CountryName'=>'GERMANY','Code'=>'DE');
$countiresArray[] = array('CountryName'=>'GHANA','Code'=>'GH');
$countiresArray[] = array('CountryName'=>'GIBRALTAR','Code'=>'GI');
$countiresArray[] = array('CountryName'=>'GREECE','Code'=>'GR');
$countiresArray[] = array('CountryName'=>'GREENLAND','Code'=>'GL');
$countiresArray[] = array('CountryName'=>'GRENADA','Code'=>'GD');
$countiresArray[] = array('CountryName'=>'GUADELOUPE','Code'=>'GP');
$countiresArray[] = array('CountryName'=>'GUAM','Code'=>'GU');
$countiresArray[] = array('CountryName'=>'GUATEMALA','Code'=>'GT');
$countiresArray[] = array('CountryName'=>'GUERNSEY','Code'=>'GG');
$countiresArray[] = array('CountryName'=>'GUINEA','Code'=>'GN');
$countiresArray[] = array('CountryName'=>'GUINEA-BISSAU','Code'=>'GW');
$countiresArray[] = array('CountryName'=>'GUYANA','Code'=>'GY');
$countiresArray[] = array('CountryName'=>'HAITI','Code'=>'HT');
$countiresArray[] = array('CountryName'=>'HEARD ISLAND AND MCDONALD ISLANDS','Code'=>'HM');
$countiresArray[] = array('CountryName'=>'HOLY SEE (VATICAN CITY STATE)','Code'=>'VA');
$countiresArray[] = array('CountryName'=>'HONDURAS','Code'=>'HN');
$countiresArray[] = array('CountryName'=>'HONG KONG','Code'=>'HK');
$countiresArray[] = array('CountryName'=>'HUNGARY','Code'=>'HU');
$countiresArray[] = array('CountryName'=>'ICELAND','Code'=>'IS');
$countiresArray[] = array('CountryName'=>'INDIA','Code'=>'IN');
$countiresArray[] = array('CountryName'=>'INDONESIA','Code'=>'ID');
$countiresArray[] = array('CountryName'=>'IRAN, ISLAMIC REPUBLIC OF','Code'=>'IR');
$countiresArray[] = array('CountryName'=>'IRAQ','Code'=>'IQ');
$countiresArray[] = array('CountryName'=>'IRELAND','Code'=>'IE');
$countiresArray[] = array('CountryName'=>'ISLE OF MAN','Code'=>'IM');
$countiresArray[] = array('CountryName'=>'ISRAEL','Code'=>'IL');
$countiresArray[] = array('CountryName'=>'ITALY','Code'=>'IT');
$countiresArray[] = array('CountryName'=>'JAMAICA','Code'=>'JM');
$countiresArray[] = array('CountryName'=>'JAPAN','Code'=>'JP');
$countiresArray[] = array('CountryName'=>'JERSEY','Code'=>'JE');
$countiresArray[] = array('CountryName'=>'JORDAN','Code'=>'JO');
$countiresArray[] = array('CountryName'=>'KAZAKHSTAN','Code'=>'KZ');
$countiresArray[] = array('CountryName'=>'KENYA','Code'=>'KE');
$countiresArray[] = array('CountryName'=>'KIRIBATI','Code'=>'KI');
$countiresArray[] = array('CountryName'=>'KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF','Code'=>'KP');
$countiresArray[] = array('CountryName'=>'KOREA, REPUBLIC OF','Code'=>'KR');
$countiresArray[] = array('CountryName'=>'KUWAIT','Code'=>'KW');
$countiresArray[] = array('CountryName'=>'KYRGYZSTAN','Code'=>'KG');
$countiresArray[] = array('CountryName'=>'LAO PEOPLE'S DEMOCRATIC REPUBLIC','Code'=>'LA');
$countiresArray[] = array('CountryName'=>'LATVIA','Code'=>'LV');
$countiresArray[] = array('CountryName'=>'LEBANON','Code'=>'LB');
$countiresArray[] = array('CountryName'=>'LESOTHO','Code'=>'LS');
$countiresArray[] = array('CountryName'=>'LIBERIA','Code'=>'LR');
$countiresArray[] = array('CountryName'=>'LIBYA','Code'=>'LY');
$countiresArray[] = array('CountryName'=>'LIECHTENSTEIN','Code'=>'LI');
$countiresArray[] = array('CountryName'=>'LITHUANIA','Code'=>'LT');
$countiresArray[] = array('CountryName'=>'LUXEMBOURG','Code'=>'LU');
$countiresArray[] = array('CountryName'=>'MACAO','Code'=>'MO');
$countiresArray[] = array('CountryName'=>'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF','Code'=>'MK');
$countiresArray[] = array('CountryName'=>'MADAGASCAR','Code'=>'MG');
$countiresArray[] = array('CountryName'=>'MALAWI','Code'=>'MW');
$countiresArray[] = array('CountryName'=>'MALAYSIA','Code'=>'MY');
$countiresArray[] = array('CountryName'=>'MALDIVES','Code'=>'MV');
$countiresArray[] = array('CountryName'=>'MALI','Code'=>'ML');
$countiresArray[] = array('CountryName'=>'MALTA','Code'=>'MT');
$countiresArray[] = array('CountryName'=>'MARSHALL ISLANDS','Code'=>'MH');
$countiresArray[] = array('CountryName'=>'MARTINIQUE','Code'=>'MQ');
$countiresArray[] = array('CountryName'=>'MAURITANIA','Code'=>'MR');
$countiresArray[] = array('CountryName'=>'MAURITIUS','Code'=>'MU');
$countiresArray[] = array('CountryName'=>'MAYOTTE','Code'=>'YT');
$countiresArray[] = array('CountryName'=>'MEXICO','Code'=>'MX');
$countiresArray[] = array('CountryName'=>'MICRONESIA, FEDERATED STATES OF','Code'=>'FM');
$countiresArray[] = array('CountryName'=>'MOLDOVA, REPUBLIC OF','Code'=>'MD');
$countiresArray[] = array('CountryName'=>'MONACO','Code'=>'MC');
$countiresArray[] = array('CountryName'=>'MONGOLIA','Code'=>'MN');
$countiresArray[] = array('CountryName'=>'MONTENEGRO','Code'=>'ME');
$countiresArray[] = array('CountryName'=>'MONTSERRAT','Code'=>'MS');
$countiresArray[] = array('CountryName'=>'MOROCCO','Code'=>'MA');
$countiresArray[] = array('CountryName'=>'MOZAMBIQUE','Code'=>'MZ');
$countiresArray[] = array('CountryName'=>'MYANMAR','Code'=>'MM');
$countiresArray[] = array('CountryName'=>'NAMIBIA','Code'=>'NA');
$countiresArray[] = array('CountryName'=>'NAURU','Code'=>'NR');
$countiresArray[] = array('CountryName'=>'NEPAL','Code'=>'NP');
$countiresArray[] = array('CountryName'=>'NETHERLANDS','Code'=>'NL');
$countiresArray[] = array('CountryName'=>'NEW CALEDONIA','Code'=>'NC');
$countiresArray[] = array('CountryName'=>'NEW ZEALAND','Code'=>'NZ');
$countiresArray[] = array('CountryName'=>'NICARAGUA','Code'=>'NI');
$countiresArray[] = array('CountryName'=>'NIGER','Code'=>'NE');
$countiresArray[] = array('CountryName'=>'NIGERIA','Code'=>'NG');
$countiresArray[] = array('CountryName'=>'NIUE','Code'=>'NU');
$countiresArray[] = array('CountryName'=>'NORFOLK ISLAND','Code'=>'NF');
$countiresArray[] = array('CountryName'=>'NORTHERN MARIANA ISLANDS','Code'=>'MP');
$countiresArray[] = array('CountryName'=>'NORWAY','Code'=>'NO');
$countiresArray[] = array('CountryName'=>'OMAN','Code'=>'OM');
$countiresArray[] = array('CountryName'=>'PAKISTAN','Code'=>'PK');
$countiresArray[] = array('CountryName'=>'PALAU','Code'=>'PW');
$countiresArray[] = array('CountryName'=>'PALESTINIAN TERRITORY, OCCUPIED','Code'=>'PS');
$countiresArray[] = array('CountryName'=>'PANAMA','Code'=>'PA');
$countiresArray[] = array('CountryName'=>'PAPUA NEW GUINEA','Code'=>'PG');
$countiresArray[] = array('CountryName'=>'PARAGUAY','Code'=>'PY');
$countiresArray[] = array('CountryName'=>'PERU','Code'=>'PE');
$countiresArray[] = array('CountryName'=>'PHILIPPINES','Code'=>'PH');
$countiresArray[] = array('CountryName'=>'PITCAIRN','Code'=>'PN');
$countiresArray[] = array('CountryName'=>'POLAND','Code'=>'PL');
$countiresArray[] = array('CountryName'=>'PORTUGAL','Code'=>'PT');
$countiresArray[] = array('CountryName'=>'PUERTO RICO','Code'=>'PR');
$countiresArray[] = array('CountryName'=>'QATAR','Code'=>'QA');
$countiresArray[] = array('CountryName'=>'RÉUNION','Code'=>'RE');
$countiresArray[] = array('CountryName'=>'ROMANIA','Code'=>'RO');
$countiresArray[] = array('CountryName'=>'RUSSIAN FEDERATION','Code'=>'RU');
$countiresArray[] = array('CountryName'=>'RWANDA','Code'=>'RW');
$countiresArray[] = array('CountryName'=>'SAINT BARTHÉLEMY','Code'=>'BL');
$countiresArray[] = array('CountryName'=>'SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA','Code'=>'SH');
$countiresArray[] = array('CountryName'=>'SAINT KITTS AND NEVIS','Code'=>'KN');
$countiresArray[] = array('CountryName'=>'SAINT LUCIA','Code'=>'LC');
$countiresArray[] = array('CountryName'=>'SAINT MARTIN (FRENCH PART)','Code'=>'MF');
$countiresArray[] = array('CountryName'=>'SAINT PIERRE AND MIQUELON','Code'=>'PM');
$countiresArray[] = array('CountryName'=>'SAINT VINCENT AND THE GRENADINES','Code'=>'VC');
$countiresArray[] = array('CountryName'=>'SAMOA','Code'=>'WS');
$countiresArray[] = array('CountryName'=>'SAN MARINO','Code'=>'SM');
$countiresArray[] = array('CountryName'=>'SAO TOME AND PRINCIPE','Code'=>'ST');
$countiresArray[] = array('CountryName'=>'SAUDI ARABIA','Code'=>'SA');
$countiresArray[] = array('CountryName'=>'SENEGAL','Code'=>'SN');
$countiresArray[] = array('CountryName'=>'SERBIA','Code'=>'RS');
$countiresArray[] = array('CountryName'=>'SEYCHELLES','Code'=>'SC');
$countiresArray[] = array('CountryName'=>'SIERRA LEONE','Code'=>'SL');
$countiresArray[] = array('CountryName'=>'SINGAPORE','Code'=>'SG');
$countiresArray[] = array('CountryName'=>'SINT MAARTEN (DUTCH PART)','Code'=>'SX');
$countiresArray[] = array('CountryName'=>'SLOVAKIA','Code'=>'SK');
$countiresArray[] = array('CountryName'=>'SLOVENIA','Code'=>'SI');
$countiresArray[] = array('CountryName'=>'SOLOMON ISLANDS','Code'=>'SB');
$countiresArray[] = array('CountryName'=>'SOMALIA','Code'=>'SO');
$countiresArray[] = array('CountryName'=>'SOUTH AFRICA','Code'=>'ZA');
$countiresArray[] = array('CountryName'=>'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS','Code'=>'GS');
$countiresArray[] = array('CountryName'=>'SOUTH SUDAN','Code'=>'SS');
$countiresArray[] = array('CountryName'=>'SPAIN','Code'=>'ES');
$countiresArray[] = array('CountryName'=>'SRI LANKA','Code'=>'LK');
$countiresArray[] = array('CountryName'=>'SUDAN','Code'=>'SD');
$countiresArray[] = array('CountryName'=>'SURINAME','Code'=>'SR');
$countiresArray[] = array('CountryName'=>'SVALBARD AND JAN MAYEN','Code'=>'SJ');
$countiresArray[] = array('CountryName'=>'SWAZILAND','Code'=>'SZ');
$countiresArray[] = array('CountryName'=>'SWEDEN','Code'=>'SE');
$countiresArray[] = array('CountryName'=>'SWITZERLAND','Code'=>'CH');
$countiresArray[] = array('CountryName'=>'SYRIAN ARAB REPUBLIC','Code'=>'SY');
$countiresArray[] = array('CountryName'=>'TAIWAN, PROVINCE OF CHINA','Code'=>'TW');
$countiresArray[] = array('CountryName'=>'TAJIKISTAN','Code'=>'TJ');
$countiresArray[] = array('CountryName'=>'TANZANIA, UNITED REPUBLIC OF','Code'=>'TZ');
$countiresArray[] = array('CountryName'=>'THAILAND','Code'=>'TH');
$countiresArray[] = array('CountryName'=>'TIMOR-LESTE','Code'=>'TL');
$countiresArray[] = array('CountryName'=>'TOGO','Code'=>'TG');
$countiresArray[] = array('CountryName'=>'TOKELAU','Code'=>'TK');
$countiresArray[] = array('CountryName'=>'TONGA','Code'=>'TO');
$countiresArray[] = array('CountryName'=>'TRINIDAD AND TOBAGO','Code'=>'TT');
$countiresArray[] = array('CountryName'=>'TUNISIA','Code'=>'TN');
$countiresArray[] = array('CountryName'=>'TURKEY','Code'=>'TR');
$countiresArray[] = array('CountryName'=>'TURKMENISTAN','Code'=>'TM');
$countiresArray[] = array('CountryName'=>'TURKS AND CAICOS ISLANDS','Code'=>'TC');
$countiresArray[] = array('CountryName'=>'TUVALU','Code'=>'TV');
$countiresArray[] = array('CountryName'=>'UGANDA','Code'=>'UG');
$countiresArray[] = array('CountryName'=>'UKRAINE','Code'=>'UA');
$countiresArray[] = array('CountryName'=>'UNITED ARAB EMIRATES','Code'=>'AE');
$countiresArray[] = array('CountryName'=>'UNITED KINGDOM','Code'=>'GB');
$countiresArray[] = array('CountryName'=>'UNITED STATES','Code'=>'US');
$countiresArray[] = array('CountryName'=>'UNITED STATES MINOR OUTLYING ISLANDS','Code'=>'UM');
$countiresArray[] = array('CountryName'=>'URUGUAY','Code'=>'UY');
$countiresArray[] = array('CountryName'=>'UZBEKISTAN','Code'=>'UZ');
$countiresArray[] = array('CountryName'=>'VANUATU','Code'=>'VU');
$countiresArray[] = array('CountryName'=>'VENEZUELA, BOLIVARIAN REPUBLIC OF','Code'=>'VE');
$countiresArray[] = array('CountryName'=>'VIET NAM','Code'=>'VN');
$countiresArray[] = array('CountryName'=>'VIRGIN ISLANDS, BRITISH','Code'=>'VG');
$countiresArray[] = array('CountryName'=>'VIRGIN ISLANDS, U.S.','Code'=>'VI');
$countiresArray[] = array('CountryName'=>'WALLIS AND FUTUNA','Code'=>'WF');
$countiresArray[] = array('CountryName'=>'WESTERN SAHARA','Code'=>'EH');
$countiresArray[] = array('CountryName'=>'YEMEN','Code'=>'YE');
$countiresArray[] = array('CountryName'=>'ZAMBIA','Code'=>'ZM');
$countiresArray[] = array('CountryName'=>'ZIMBABWE','Code'=>'ZW');
How to use
foreach($countiresArray as $country)
{
echo '<p>'.$country['CountryName'].' - '.$country['Code'].'</p>';
}


