Last active
March 5, 2017 04:27
-
-
Save Anasxrt/b523b1d35dcedb42d038d7b361d9266b to your computer and use it in GitHub Desktop.
Geoip-Country to Currency EU
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 | |
$countryToCurrency = array( | |
'default' => 'USD', | |
'TH' => 'THB', | |
// EU countries using the euro | |
'AT' => 'EUR', | |
'BE' => 'EUR', | |
'CY' => 'EUR', | |
'EE' => 'EUR', | |
'FI' => 'EUR', | |
'FR' => 'EUR', | |
'DE' => 'EUR', | |
'GR' => 'EUR', | |
'IE' => 'EUR', | |
'IT' => 'EUR', | |
'LV' => 'EUR', | |
'LT' => 'EUR', | |
'LU' => 'EUR', | |
'MT' => 'EUR', | |
'NL' => 'EUR', | |
'PT' => 'EUR', | |
'ES' => 'EUR', | |
'SI' => 'EUR', | |
'SK' => 'EUR', | |
// Non-EU countries using the euro have 2 countries Kosovo and Montanegro. But GeOIP detect as "Serbia and Montenegro" | |
'CS' => 'EUR', | |
'ME' => 'EUR', | |
// Microstates using the euro | |
'AD' => 'EUR', | |
'MC' => 'EUR', | |
'SM' => 'EUR', | |
'VA' => 'EUR', | |
// Switzerland… Note that the Euro is a foreign currency in Switzerland, but will be accepted. However, change will be in Swiss francs. | |
'CH' => 'EUR', | |
// NOTE: You can add more below, refer link http://dev.maxmind.com/geoip/legacy/codes/iso3166/ for the EU code refer http://dev.maxmind.com/geoip/legacy/codes/eu_country_list/ | |
// reference from http://www.aph.com/community/holidays/list-of-european-countries-which-use-the-euro-currency/ | |
//Anas_xrt - CloudRambo.com | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment