Last active
June 3, 2023 22:13
-
-
Save sumanthkumarc/3204c761eaa1646f3a4fd6cb1cf99e7c to your computer and use it in GitHub Desktop.
EU (European country code and names list) in PHP array format
This file contains hidden or 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 | |
function get_eu_countries() { | |
$countries = []; | |
$countries['AT'] = ['name' => 'Austria',]; | |
$countries['BE'] = ['name' => 'Belgium',]; | |
$countries['BG'] = ['name' => 'Bulgaria',]; | |
$countries['CY'] = ['name' => 'Cyprus',]; | |
$countries['CZ'] = ['name' => 'Czech Republic',]; | |
$countries['DE'] = ['name' => 'Germany',]; | |
$countries['DK'] = ['name' => 'Denmark',]; | |
$countries['EE'] = ['name' => 'Estonia',]; | |
$countries['ES'] = ['name' => 'Spain',]; | |
$countries['FI'] = ['name' => 'Finland',]; | |
$countries['FR'] = ['name' => 'France',]; | |
$countries['GB'] = ['name' => 'United Kingdom',]; | |
$countries['GR'] = ['name' => 'Greece',]; | |
$countries['HU'] = ['name' => 'Hungary',]; | |
$countries['HR'] = ['name' => 'Croatia',]; | |
$countries['IE'] = ['name' => 'Ireland, Republic of (EIRE)',]; | |
$countries['IT'] = ['name' => 'Italy',]; | |
$countries['LT'] = ['name' => 'Lithuania',]; | |
$countries['LU'] = ['name' => 'Luxembourg',]; | |
$countries['LV'] = ['name' => 'Latvia',]; | |
$countries['MT'] = ['name' => 'Malta',]; | |
$countries['NL'] = ['name' => 'Netherlands',]; | |
$countries['PL'] = ['name' => 'Poland',]; | |
$countries['PT'] = ['name' => 'Portugal',]; | |
$countries['RO'] = ['name' => 'Romania',]; | |
$countries['SE'] = ['name' => 'Sweden',]; | |
$countries['SI'] = ['name' => 'Slovenia',]; | |
$countries['SK'] = ['name' => 'Slovakia',]; | |
return $countries; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very interesting, thank you!