Get European Union (EU) countries as string array in PHP

/**
 * Gets an array of countries in the European Union (EU).
 *
 * @return string[]
 */
function get_european_union_countries() {
	$countries = array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' );
	return $countries;
}

Leave a Comment