-
-
Save champsupertramp/95493faa7ba12b61bf6e to your computer and use it in GitHub Desktop.
array ( | |
'ALL' => 'Albania Lek', | |
'AFN' => 'Afghanistan Afghani', | |
'ARS' => 'Argentina Peso', | |
'AWG' => 'Aruba Guilder', | |
'AUD' => 'Australia Dollar', | |
'AZN' => 'Azerbaijan New Manat', | |
'BSD' => 'Bahamas Dollar', | |
'BBD' => 'Barbados Dollar', | |
'BDT' => 'Bangladeshi taka', | |
'BYR' => 'Belarus Ruble', | |
'BZD' => 'Belize Dollar', | |
'BMD' => 'Bermuda Dollar', | |
'BOB' => 'Bolivia Boliviano', | |
'BAM' => 'Bosnia and Herzegovina Convertible Marka', | |
'BWP' => 'Botswana Pula', | |
'BGN' => 'Bulgaria Lev', | |
'BRL' => 'Brazil Real', | |
'BND' => 'Brunei Darussalam Dollar', | |
'KHR' => 'Cambodia Riel', | |
'CAD' => 'Canada Dollar', | |
'KYD' => 'Cayman Islands Dollar', | |
'CLP' => 'Chile Peso', | |
'CNY' => 'China Yuan Renminbi', | |
'COP' => 'Colombia Peso', | |
'CRC' => 'Costa Rica Colon', | |
'HRK' => 'Croatia Kuna', | |
'CUP' => 'Cuba Peso', | |
'CZK' => 'Czech Republic Koruna', | |
'DKK' => 'Denmark Krone', | |
'DOP' => 'Dominican Republic Peso', | |
'XCD' => 'East Caribbean Dollar', | |
'EGP' => 'Egypt Pound', | |
'SVC' => 'El Salvador Colon', | |
'EEK' => 'Estonia Kroon', | |
'EUR' => 'Euro Member Countries', | |
'FKP' => 'Falkland Islands (Malvinas) Pound', | |
'FJD' => 'Fiji Dollar', | |
'GHC' => 'Ghana Cedis', | |
'GIP' => 'Gibraltar Pound', | |
'GTQ' => 'Guatemala Quetzal', | |
'GGP' => 'Guernsey Pound', | |
'GYD' => 'Guyana Dollar', | |
'HNL' => 'Honduras Lempira', | |
'HKD' => 'Hong Kong Dollar', | |
'HUF' => 'Hungary Forint', | |
'ISK' => 'Iceland Krona', | |
'INR' => 'India Rupee', | |
'IDR' => 'Indonesia Rupiah', | |
'IRR' => 'Iran Rial', | |
'IMP' => 'Isle of Man Pound', | |
'ILS' => 'Israel Shekel', | |
'JMD' => 'Jamaica Dollar', | |
'JPY' => 'Japan Yen', | |
'JEP' => 'Jersey Pound', | |
'KZT' => 'Kazakhstan Tenge', | |
'KPW' => 'Korea (North) Won', | |
'KRW' => 'Korea (South) Won', | |
'KGS' => 'Kyrgyzstan Som', | |
'LAK' => 'Laos Kip', | |
'LVL' => 'Latvia Lat', | |
'LBP' => 'Lebanon Pound', | |
'LRD' => 'Liberia Dollar', | |
'LTL' => 'Lithuania Litas', | |
'MKD' => 'Macedonia Denar', | |
'MYR' => 'Malaysia Ringgit', | |
'MUR' => 'Mauritius Rupee', | |
'MXN' => 'Mexico Peso', | |
'MNT' => 'Mongolia Tughrik', | |
'MZN' => 'Mozambique Metical', | |
'NAD' => 'Namibia Dollar', | |
'NPR' => 'Nepal Rupee', | |
'ANG' => 'Netherlands Antilles Guilder', | |
'NZD' => 'New Zealand Dollar', | |
'NIO' => 'Nicaragua Cordoba', | |
'NGN' => 'Nigeria Naira', | |
'NOK' => 'Norway Krone', | |
'OMR' => 'Oman Rial', | |
'PKR' => 'Pakistan Rupee', | |
'PAB' => 'Panama Balboa', | |
'PYG' => 'Paraguay Guarani', | |
'PEN' => 'Peru Nuevo Sol', | |
'PHP' => 'Philippines Peso', | |
'PLN' => 'Poland Zloty', | |
'QAR' => 'Qatar Riyal', | |
'RON' => 'Romania New Leu', | |
'RUB' => 'Russia Ruble', | |
'SHP' => 'Saint Helena Pound', | |
'SAR' => 'Saudi Arabia Riyal', | |
'RSD' => 'Serbia Dinar', | |
'SCR' => 'Seychelles Rupee', | |
'SGD' => 'Singapore Dollar', | |
'SBD' => 'Solomon Islands Dollar', | |
'SOS' => 'Somalia Shilling', | |
'ZAR' => 'South Africa Rand', | |
'LKR' => 'Sri Lanka Rupee', | |
'SEK' => 'Sweden Krona', | |
'CHF' => 'Switzerland Franc', | |
'SRD' => 'Suriname Dollar', | |
'SYP' => 'Syria Pound', | |
'TWD' => 'Taiwan New Dollar', | |
'THB' => 'Thailand Baht', | |
'TTD' => 'Trinidad and Tobago Dollar', | |
'TRY' => 'Turkey Lira', | |
'TRL' => 'Turkey Lira', | |
'TVD' => 'Tuvalu Dollar', | |
'UAH' => 'Ukraine Hryvna', | |
'GBP' => 'United Kingdom Pound', | |
'USD' => 'United States Dollar', | |
'UYU' => 'Uruguay Peso', | |
'UZS' => 'Uzbekistan Som', | |
'VEF' => 'Venezuela Bolivar', | |
'VND' => 'Viet Nam Dong', | |
'YER' => 'Yemen Rial', | |
'ZWD' => 'Zimbabwe Dollar' | |
); |
Thank you for the list, I needed it a bit different so I modified it a bit for my use, also I added symbols for currency that have one.
[ { "code":"AED", "name":"United Arab Emirates dirham", "symbol":"" }, { "code":"AFN", "name":"Afghan afghani", "symbol":"" }, { "code":"ALL", "name":"Albanian lek", "symbol":"" }, { "code":"AMD", "name":"Armenian dram", "symbol":"" }, { "code":"ANG", "name":"Netherlands Antillean guilder", "symbol":"" }, { "code":"AOA", "name":"Angolan kwanza", "symbol":"" }, { "code":"ARS", "name":"Argentine peso", "symbol":"" }, { "code":"AUD", "name":"Australian dollar", "symbol":"" }, { "code":"AWG", "name":"Aruban florin", "symbol":"" }, { "code":"AZN", "name":"Azerbaijani manat", "symbol":"" }, { "code":"BAM", "name":"Bosnia and Herzegovina convertible mark", "symbol":"" }, { "code":"BBD", "name":"Barbados dollar", "symbol":"" }, { "code":"BDT", "name":"Bangladeshi taka", "symbol":"" }, { "code":"BGN", "name":"Bulgarian lev", "symbol":"" }, { "code":"BHD", "name":"Bahraini dinar", "symbol":"" }, { "code":"BIF", "name":"Burundian franc", "symbol":"" }, { "code":"BMD", "name":"Bermudian dollar", "symbol":"" }, { "code":"BND", "name":"Brunei dollar", "symbol":"" }, { "code":"BOB", "name":"Boliviano", "symbol":"" }, { "code":"BRL", "name":"Brazilian real", "symbol":"" }, { "code":"BSD", "name":"Bahamian dollar", "symbol":"" }, { "code":"BTN", "name":"Bhutanese ngultrum", "symbol":"" }, { "code":"BWP", "name":"Botswana pula", "symbol":"" }, { "code":"BYN", "name":"New Belarusian ruble", "symbol":"" }, { "code":"BYR", "name":"Belarusian ruble", "symbol":"" }, { "code":"BZD", "name":"Belize dollar", "symbol":"" }, { "code":"CAD", "name":"Canadian dollar", "symbol":"" }, { "code":"CDF", "name":"Congolese franc", "symbol":"" }, { "code":"CHF", "name":"Swiss franc", "symbol":"" }, { "code":"CLF", "name":"Unidad de Fomento", "symbol":"" }, { "code":"CLP", "name":"Chilean peso", "symbol":"" }, { "code":"CNY", "name":"Renminbi|Chinese yuan", "symbol":"" }, { "code":"COP", "name":"Colombian peso", "symbol":"" }, { "code":"CRC", "name":"Costa Rican colon", "symbol":"₡" }, { "code":"CUC", "name":"Cuban convertible peso", "symbol":"" }, { "code":"CUP", "name":"Cuban peso", "symbol":"" }, { "code":"CVE", "name":"Cape Verde escudo", "symbol":"" }, { "code":"CZK", "name":"Czech koruna", "symbol":"" }, { "code":"DJF", "name":"Djiboutian franc", "symbol":"" }, { "code":"DKK", "name":"Danish krone", "symbol":"" }, { "code":"DOP", "name":"Dominican peso", "symbol":"" }, { "code":"DZD", "name":"Algerian dinar", "symbol":"" }, { "code":"EGP", "name":"Egyptian pound", "symbol":"" }, { "code":"ERN", "name":"Eritrean nakfa", "symbol":"" }, { "code":"ETB", "name":"Ethiopian birr", "symbol":"" }, { "code":"EUR", "name":"Euro", "symbol":"€" }, { "code":"FJD", "name":"Fiji dollar", "symbol":"" }, { "code":"FKP", "name":"Falkland Islands pound", "symbol":"" }, { "code":"GBP", "name":"Pound sterling", "symbol":"£" }, { "code":"GEL", "name":"Georgian lari", "symbol":"" }, { "code":"GHS", "name":"Ghanaian cedi", "symbol":"" }, { "code":"GIP", "name":"Gibraltar pound", "symbol":"" }, { "code":"GMD", "name":"Gambian dalasi", "symbol":"" }, { "code":"GNF", "name":"Guinean franc", "symbol":"" }, { "code":"GTQ", "name":"Guatemalan quetzal", "symbol":"" }, { "code":"GYD", "name":"Guyanese dollar", "symbol":"" }, { "code":"HKD", "name":"Hong Kong dollar", "symbol":"" }, { "code":"HNL", "name":"Honduran lempira", "symbol":"" }, { "code":"HRK", "name":"Croatian kuna", "symbol":"" }, { "code":"HTG", "name":"Haitian gourde", "symbol":"" }, { "code":"HUF", "name":"Hungarian forint", "symbol":"" }, { "code":"IDR", "name":"Indonesian rupiah", "symbol":"" }, { "code":"ILS", "name":"Israeli new shekel", "symbol":"₪" }, { "code":"INR", "name":"Indian rupee", "symbol":"₹" }, { "code":"IQD", "name":"Iraqi dinar", "symbol":"" }, { "code":"IRR", "name":"Iranian rial", "symbol":"" }, { "code":"ISK", "name":"Icelandic króna", "symbol":"" }, { "code":"JMD", "name":"Jamaican dollar", "symbol":"" }, { "code":"JOD", "name":"Jordanian dinar", "symbol":"" }, { "code":"JPY", "name":"Japanese yen", "symbol":"¥" }, { "code":"KES", "name":"Kenyan shilling", "symbol":"" }, { "code":"KGS", "name":"Kyrgyzstani som", "symbol":"" }, { "code":"KHR", "name":"Cambodian riel", "symbol":"" }, { "code":"KMF", "name":"Comoro franc", "symbol":"" }, { "code":"KPW", "name":"North Korean won", "symbol":"" }, { "code":"KRW", "name":"South Korean won", "symbol":"₩" }, { "code":"KWD", "name":"Kuwaiti dinar", "symbol":"" }, { "code":"KYD", "name":"Cayman Islands dollar", "symbol":"" }, { "code":"KZT", "name":"Kazakhstani tenge", "symbol":"" }, { "code":"LAK", "name":"Lao kip", "symbol":"" }, { "code":"LBP", "name":"Lebanese pound", "symbol":"" }, { "code":"LKR", "name":"Sri Lankan rupee", "symbol":"" }, { "code":"LRD", "name":"Liberian dollar", "symbol":"" }, { "code":"LSL", "name":"Lesotho loti", "symbol":"" }, { "code":"LYD", "name":"Libyan dinar", "symbol":"" }, { "code":"MAD", "name":"Moroccan dirham", "symbol":"" }, { "code":"MDL", "name":"Moldovan leu", "symbol":"" }, { "code":"MGA", "name":"Malagasy ariary", "symbol":"" }, { "code":"MKD", "name":"Macedonian denar", "symbol":"" }, { "code":"MMK", "name":"Myanmar kyat", "symbol":"" }, { "code":"MNT", "name":"Mongolian tögrög", "symbol":"" }, { "code":"MOP", "name":"Macanese pataca", "symbol":"" }, { "code":"MRO", "name":"Mauritanian ouguiya", "symbol":"" }, { "code":"MUR", "name":"Mauritian rupee", "symbol":"" }, { "code":"MVR", "name":"Maldivian rufiyaa", "symbol":"" }, { "code":"MWK", "name":"Malawian kwacha", "symbol":"" }, { "code":"MXN", "name":"Mexican peso", "symbol":"" }, { "code":"MXV", "name":"Mexican Unidad de Inversion", "symbol":"" }, { "code":"MYR", "name":"Malaysian ringgit", "symbol":"" }, { "code":"MZN", "name":"Mozambican metical", "symbol":"" }, { "code":"NAD", "name":"Namibian dollar", "symbol":"" }, { "code":"NGN", "name":"Nigerian naira", "symbol":"₦" }, { "code":"NIO", "name":"Nicaraguan córdoba", "symbol":"" }, { "code":"NOK", "name":"Norwegian krone", "symbol":"" }, { "code":"NPR", "name":"Nepalese rupee", "symbol":"" }, { "code":"NZD", "name":"New Zealand dollar", "symbol":"" }, { "code":"OMR", "name":"Omani rial", "symbol":"" }, { "code":"PAB", "name":"Panamanian balboa", "symbol":"" }, { "code":"PEN", "name":"Peruvian Sol", "symbol":"" }, { "code":"PGK", "name":"Papua New Guinean kina", "symbol":"" }, { "code":"PHP", "name":"Philippine peso", "symbol":"₱" }, { "code":"PKR", "name":"Pakistani rupee", "symbol":"" }, { "code":"PLN", "name":"Polish złoty", "symbol":"zł" }, { "code":"PYG", "name":"Paraguayan guaraní", "symbol":"₲" }, { "code":"QAR", "name":"Qatari riyal", "symbol":"" }, { "code":"RON", "name":"Romanian leu", "symbol":"" }, { "code":"RSD", "name":"Serbian dinar", "symbol":"" }, { "code":"RUB", "name":"Russian ruble", "symbol":"" }, { "code":"RWF", "name":"Rwandan franc", "symbol":"" }, { "code":"SAR", "name":"Saudi riyal", "symbol":"" }, { "code":"SBD", "name":"Solomon Islands dollar", "symbol":"" }, { "code":"SCR", "name":"Seychelles rupee", "symbol":"" }, { "code":"SDG", "name":"Sudanese pound", "symbol":"" }, { "code":"SEK", "name":"Swedish krona", "symbol":"" }, { "code":"SGD", "name":"Singapore dollar", "symbol":"" }, { "code":"SHP", "name":"Saint Helena pound", "symbol":"" }, { "code":"SLL", "name":"Sierra Leonean leone", "symbol":"" }, { "code":"SOS", "name":"Somali shilling", "symbol":"" }, { "code":"SRD", "name":"Surinamese dollar", "symbol":"" }, { "code":"SSP", "name":"South Sudanese pound", "symbol":"" }, { "code":"STD", "name":"São Tomé and Príncipe dobra", "symbol":"" }, { "code":"SVC", "name":"Salvadoran colón", "symbol":"" }, { "code":"SYP", "name":"Syrian pound", "symbol":"" }, { "code":"SZL", "name":"Swazi lilangeni", "symbol":"" }, { "code":"THB", "name":"Thai baht", "symbol":"฿" }, { "code":"TJS", "name":"Tajikistani somoni", "symbol":"" }, { "code":"TMT", "name":"Turkmenistani manat", "symbol":"" }, { "code":"TND", "name":"Tunisian dinar", "symbol":"" }, { "code":"TOP", "name":"Tongan paʻanga", "symbol":"" }, { "code":"TRY", "name":"Turkish lira", "symbol":"" }, { "code":"TTD", "name":"Trinidad and Tobago dollar", "symbol":"" }, { "code":"TWD", "name":"New Taiwan dollar", "symbol":"" }, { "code":"TZS", "name":"Tanzanian shilling", "symbol":"" }, { "code":"UAH", "name":"Ukrainian hryvnia", "symbol":"₴" }, { "code":"UGX", "name":"Ugandan shilling", "symbol":"" }, { "code":"USD", "name":"United States dollar", "symbol":"$" }, { "code":"UYI", "name":"Uruguay Peso en Unidades Indexadas", "symbol":"" }, { "code":"UYU", "name":"Uruguayan peso", "symbol":"" }, { "code":"UZS", "name":"Uzbekistan som", "symbol":"" }, { "code":"VEF", "name":"Venezuelan bolívar", "symbol":"" }, { "code":"VND", "name":"Vietnamese đồng", "symbol":"₫" }, { "code":"VUV", "name":"Vanuatu vatu", "symbol":"" }, { "code":"WST", "name":"Samoan tala", "symbol":"" }, { "code":"XAF", "name":"Central African CFA franc", "symbol":"" }, { "code":"XCD", "name":"East Caribbean dollar", "symbol":"" }, { "code":"XOF", "name":"West African CFA franc", "symbol":"" }, { "code":"XPF", "name":"CFP franc", "symbol":"" }, { "code":"XXX", "name":"No currency", "symbol":"" }, { "code":"YER", "name":"Yemeni rial", "symbol":"" }, { "code":"ZAR", "name":"South African rand", "symbol":"" }, { "code":"ZMW", "name":"Zambian kwacha", "symbol":"" }, { "code":"ZWL", "name":"Zimbabwean dollar", "symbol":"" } ]
I updated it and added some new column
$currencies = array(
array('code'=> 'ALL',
'countryname'=> 'Albania',
'name'=> 'Albanian lek',
'symbol'=> 'L'),
array('code'=> 'AFN',
'countryname'=> 'Afghanistan',
'name'=> 'Afghanistan Afghani',
'symbol'=> '؋'),
array('code'=> 'ARS',
'countryname'=> 'Argentina',
'name'=> 'Argentine Peso',
'symbol'=> '$'),
array('code'=> 'AWG',
'countryname'=> 'Aruba',
'name'=> 'Aruban florin',
'symbol'=> 'ƒ'),
array('code'=> 'AUD',
'countryname'=> 'Australia',
'name'=> 'Australian Dollar',
'symbol'=> 'A$'),
array('code'=> 'AZN',
'countryname'=> 'Azerbaijan',
'name'=> 'Azerbaijani Manat',
'symbol'=> '₼'),
array('code'=> 'BSD',
'countryname'=> 'The Bahamas',
'name'=> 'Bahamas Dollar',
'symbol'=> 'B$'),
array('code'=> 'BBD',
'countryname'=> 'Barbados',
'name'=> 'Barbados Dollar',
'symbol'=> 'Bds$'),
array('code'=> 'BDT',
'countryname'=> 'People\'s Republic of Bangladesh',
'name'=> 'Bangladeshi taka',
'symbol'=> '৳'),
array('code'=> 'BYN',
'countryname'=> 'Belarus',
'name'=> 'Belarus Ruble',
'symbol'=> 'Br'),
array('code'=> 'BZD',
'countryname'=> 'Belize',
'name'=> 'Belize Dollar',
'symbol'=> 'BZ$'),
array('code'=> 'BMD',
'countryname'=> 'British Overseas Territory of Bermuda',
'name'=> 'Bermudian Dollar',
'symbol'=> 'BD$'),
array('code'=> 'BOP',
'countryname'=> 'Bolivia',
'name'=> 'Boliviano',
'symbol'=> 'Bs'),
array('code'=> 'BAM',
'countryname'=> 'Bosnia and Herzegovina',
'name'=> 'Bosnia-Herzegovina Convertible Marka',
'symbol'=> 'KM'),
array('code'=> 'BWP',
'countryname'=> 'Botswana',
'name'=> 'Botswana pula',
'symbol'=> 'P'),
array('code'=> 'BGN',
'countryname'=> 'Bulgaria',
'name'=> 'Bulgarian lev',
'symbol'=> 'лв'),
array('code'=> 'BRL',
'countryname'=> 'Brazil',
'name'=> 'Brazilian real',
'symbol'=> 'R$'),
array('code'=> 'BND',
'countryname'=> 'Sultanate of Brunei',
'name'=> 'Brunei dollar',
'symbol'=> 'B$'),
array('code'=> 'KHR',
'countryname'=> 'Cambodia',
'name'=> 'Cambodian riel',
'symbol'=> '៛'),
array('code'=> 'CAD',
'countryname'=> 'Canada',
'name'=> 'Canadian dollar',
'symbol'=> 'C$'),
array('code'=> 'KYD',
'countryname'=> 'Cayman Islands',
'name'=> 'Cayman Islands dollar',
'symbol'=> '$'),
array('code'=> 'CLP',
'countryname'=> 'Chile',
'name'=> 'Chilean peso',
'symbol'=> '$'),
array('code'=> 'CNY',
'countryname'=> 'China',
'name'=> 'Chinese Yuan Renminbi',
'symbol'=> '¥'),
array('code'=> 'COP',
'countryname'=> 'Colombia',
'name'=> 'Colombian peso',
'symbol'=> '$'),
array('code'=> 'CRC',
'countryname'=> 'Costa Rica',
'name'=> 'Costa Rican colón',
'symbol'=> '₡'),
array('code'=> 'HRK',
'countryname'=> 'Croatia',
'name'=> 'Croatian kuna',
'symbol'=> 'kn'),
array('code'=> 'CUP',
'countryname'=> 'Cuba',
'name'=> 'Cuban peso',
'symbol'=> '₱'),
array('code'=> 'CZK',
'countryname'=> 'Czech Republic',
'name'=> 'Czech koruna',
'symbol'=> 'Kč'),
array('code'=> 'DKK',
'countryname'=> 'Denmark, Greenland, and the Faroe Islands',
'name'=> 'Danish krone',
'symbol'=> 'kr'),
array('code'=> 'DOP',
'countryname'=> 'Dominican Republic',
'name'=> 'Dominican peso',
'symbol'=> 'RD$'),
array('code'=> 'XCD',
'countryname'=> 'Antigua and Barbuda, Commonwealth of Dominica, Grenada, Montserrat, St. Kitts and Nevis, Saint Lucia and St. Vincent and the Grenadines',
'name'=> 'Eastern Caribbean dollar',
'symbol'=> '$'),
array('code'=> 'EGP',
'countryname'=> 'Egypt',
'name'=> 'Egyptian pound',
'symbol'=> '£'),
array('code'=> 'SVC',
'countryname'=> 'El Salvador',
'name'=> 'Salvadoran colón',
'symbol'=> '$'),
array('code'=> 'EEK',
'countryname'=> 'Estonia',
'name'=> 'Estonian kroon',
'symbol'=> 'Kr'),
array('code'=> 'EUR',
'countryname'=> 'European Union, Italy, Belgium, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany,
Greece, Hungary, Ireland, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Poland,
Portugal, Romania, Slovakia, Slovenia, Spain, Sweden',
'name'=> 'Euro',
'symbol'=> '€'),
array('code'=> 'FKP',
'countryname'=> 'Falkland Islands',
'name'=> 'Falkland Islands (Malvinas) Pound',
'symbol'=> 'FK£'),
array('code'=> 'FJD',
'countryname'=> 'Fiji',
'name'=> 'Fijian dollar',
'symbol'=> 'FJ$'),
array('code'=> 'GHC',
'countryname'=> 'Ghana',
'name'=> 'Ghanaian cedi',
'symbol'=> 'GH¢'),
array('code'=> 'GIP',
'countryname'=> 'Gibraltar',
'name'=> 'Gibraltar pound',
'symbol'=> '£'),
array('code'=> 'GTQ',
'countryname'=> 'Guatemala',
'name'=> 'Guatemalan quetzal',
'symbol'=> 'Q'),
array('code'=> 'GGP',
'countryname'=> 'Guernsey',
'name'=> 'Guernsey pound',
'symbol'=> 'Q'),
array('code'=> 'GYD',
'countryname'=> 'Guyana',
'name'=> 'Guyanese dollar',
'symbol'=> 'GY$'),
array('code'=> 'HNL',
'countryname'=> 'Honduras',
'name'=> 'Honduran lempira',
'symbol'=> 'L'),
array('code'=> 'HKD',
'countryname'=> 'Hong Kong',
'name'=> 'Hong Kong dollar',
'symbol'=> 'HK$'),
array('code'=> 'HUF',
'countryname'=> 'Hungary',
'name'=> 'Hungarian forint',
'symbol'=> 'Ft'),
array('code'=> 'ISK',
'countryname'=> 'Iceland',
'name'=> 'Icelandic króna',
'symbol'=> 'íkr'),
array('code'=> 'INR',
'countryname'=> 'India',
'name'=> 'Indian rupee',
'symbol'=> '₹'),
array('code'=> 'IDR',
'countryname'=> 'Indonesia',
'name'=> 'Indonesian rupiah',
'symbol'=> 'Rp'),
array('code'=> 'IRR',
'countryname'=> 'Iran',
'name'=> 'Iranian rial',
'symbol'=> '﷼'),
array('code'=> 'IMP',
'countryname'=> 'Isle of Man',
'name'=> 'Manx pound',
'symbol'=> '£'),
array('code'=> 'ILS',
'countryname'=> 'Israel, Palestinian territories of the West Bank and the Gaza Strip',
'name'=> 'Israeli Shekel',
'symbol'=> '₪'),
array('code'=> 'JMD',
'countryname'=> 'Jamaica',
'name'=> 'Jamaican dollar',
'symbol'=> 'J$'),
array('code'=> 'JPY',
'countryname'=> 'Japan',
'name'=> 'Japanese yen',
'symbol'=> '¥'),
array('code'=> 'JEP',
'countryname'=> 'Jersey',
'name'=> 'Jersey pound',
'symbol'=> '£'),
array('code'=> 'KZT',
'countryname'=> 'Kazakhstan',
'name'=> 'Kazakhstani tenge',
'symbol'=> '₸'),
array('code'=> 'KPW',
'countryname'=> 'North Korea',
'name'=> 'North Korean won',
'symbol'=> '₩'),
array('code'=> 'KPW',
'countryname'=> 'South Korea',
'name'=> 'South Korean won',
'symbol'=> '₩'),
array('code'=> 'KGS',
'countryname'=> 'Kyrgyz Republic',
'name'=> 'Kyrgyzstani som',
'symbol'=> 'лв'),
array('code'=> 'LAK',
'countryname'=> 'Laos',
'name'=> 'Lao kip',
'symbol'=> '₭'),
array('code'=> 'LAK',
'countryname'=> 'Laos',
'name'=> 'Latvian lats',
'symbol'=> '€'),
array('code'=> 'LVL',
'countryname'=> 'Laos',
'name'=> 'Latvian lats',
'symbol'=> '€'),
array('code'=> 'LBP',
'countryname'=> 'Lebanon',
'name'=> 'Lebanese pound',
'symbol'=> 'L£'),
array('code'=> 'LRD',
'countryname'=> 'Liberia',
'name'=> 'Liberian dollar',
'symbol'=> 'LD$'),
array('code'=> 'LTL',
'countryname'=> 'Lithuania',
'name'=> 'Lithuanian litas',
'symbol'=> '€'),
array('code'=> 'MKD',
'countryname'=> 'North Macedonia',
'name'=> 'Macedonian denar',
'symbol'=> 'ден'),
array('code'=> 'MYR',
'countryname'=> 'Malaysia',
'name'=> 'Malaysian ringgit',
'symbol'=> 'RM'),
array('code'=> 'MUR',
'countryname'=> 'Mauritius',
'name'=> 'Mauritian rupee',
'symbol'=> 'Rs'),
array('code'=> 'MXN',
'countryname'=> 'Mexico',
'name'=> 'Mexican peso',
'symbol'=> 'Mex$'),
array('code'=> 'MNT',
'countryname'=> 'Mongolia',
'name'=> 'Mongolian tögrög',
'symbol'=> '₮'),
array('code'=> 'MZN',
'countryname'=> 'Mozambique',
'name'=> 'Mozambican metical',
'symbol'=> 'MT'),
array('code'=> 'NAD',
'countryname'=> 'Namibia',
'name'=> 'Namibian dollar',
'symbol'=> 'N$'),
array('code'=> 'NPR',
'countryname'=> 'Federal Democratic Republic of Nepal',
'name'=> 'Nepalese rupee',
'symbol'=> 'Rs.'),
array('code'=> 'ANG',
'countryname'=> 'Curaçao and Sint Maarten',
'name'=> 'Netherlands Antillean guilder',
'symbol'=> 'ƒ'),
array('code'=> 'NZD',
'countryname'=> 'New Zealand, the Cook Islands, Niue, the Ross Dependency, Tokelau, the Pitcairn Islands',
'name'=> 'New Zealand dollar',
'symbol'=> '$'),
array('code'=> 'NIO',
'countryname'=> 'Nicaragua',
'name'=> 'Nicaraguan córdoba',
'symbol'=> 'C$'),
array('code'=> 'NGN',
'countryname'=> 'Nigeria',
'name'=> 'Nigerian naira',
'symbol'=> '₦'),
array('code'=> 'NOK',
'countryname'=> 'Norway and its dependent territories',
'name'=> 'Norwegian krone',
'symbol'=> 'kr'),
array('code'=> 'OMR',
'countryname'=> 'Oman',
'name'=> 'Omani rial',
'symbol'=> '﷼'),
array('code'=> 'PKR',
'countryname'=> 'Pakistan',
'name'=> 'Pakistani rupee',
'symbol'=> 'Rs'),
array('code'=> 'PAB',
'countryname'=> 'Panama',
'name'=> 'Panamanian balboa',
'symbol'=> 'B/.'),
array('code'=> 'PYG',
'countryname'=> 'Paraguay',
'name'=> 'Paraguayan Guaraní',
'symbol'=> '₲'),
array('code'=> 'PEN',
'countryname'=> 'Peru',
'name'=> 'Sol',
'symbol'=> 'S/.'),
array('code'=> 'PHP',
'countryname'=> 'Philippines',
'name'=> 'Philippine peso',
'symbol'=> '₱'),
array('code'=> 'PLN',
'countryname'=> 'Poland',
'name'=> 'Polish złoty',
'symbol'=> 'zł'),
array('code'=> 'QAR',
'countryname'=> 'State of Qatar',
'name'=> 'Qatari Riyal',
'symbol'=> '﷼'),
array('code'=> 'RON',
'countryname'=> 'Romania',
'name'=> 'Romanian leu (Leu românesc)',
'symbol'=> 'L'),
array('code'=> 'RUB',
'countryname'=> 'Russian Federation, Abkhazia and South Ossetia, Donetsk and Luhansk',
'name'=> 'Russian ruble',
'symbol'=> '₽'),
array('code'=> 'SHP',
'countryname'=> 'Saint Helena, Ascension and Tristan da Cunha',
'name'=> 'Saint Helena pound',
'symbol'=> '£'),
array('code'=> 'SAR',
'countryname'=> 'Saudi Arabia',
'name'=> 'Saudi riyal',
'symbol'=> '﷼'),
array('code'=> 'RSD',
'countryname'=> 'Serbia',
'name'=> 'Serbian dinar',
'symbol'=> 'din'),
array('code'=> 'SCR',
'countryname'=> 'Seychelles',
'name'=> 'Seychellois rupee',
'symbol'=> 'Rs'),
array('code'=> 'SGD',
'countryname'=> 'Singapore',
'name'=> 'Singapore dollar',
'symbol'=> 'S$'),
array('code'=> 'SBD',
'countryname'=> 'Solomon Islands',
'name'=> 'Solomon Islands dollar',
'symbol'=> 'SI$'),
array('code'=> 'SOS',
'countryname'=> 'Somalia',
'name'=> 'Somali shilling',
'symbol'=> 'Sh.So'),
array('code'=> 'ZAR',
'countryname'=> 'South Africa',
'name'=> 'South African rand',
'symbol'=> 'R'),
array('code'=> 'LKR',
'countryname'=> 'Sri Lanka',
'name'=> 'Sri Lankan rupee',
'symbol'=> 'Rs'),
array('code'=> 'SEK',
'countryname'=> 'Sweden',
'name'=> 'Swedish krona',
'symbol'=> 'kr'),
array('code'=> 'CHF',
'countryname'=> 'Switzerland',
'name'=> 'Swiss franc',
'symbol'=> 'CHf'),
array('code'=> 'SRD',
'countryname'=> 'Suriname',
'name'=> 'Suriname Dollar',
'symbol'=> 'Sr$'),
array('code'=> 'SYP',
'countryname'=> 'Syria',
'name'=> 'Syrian pound',
'symbol'=> '£S'),
array('code'=> 'TWD',
'countryname'=> 'Taiwan',
'name'=> 'New Taiwan dollar',
'symbol'=> 'NT$'),
array('code'=> 'THB',
'countryname'=> 'Thailand',
'name'=> 'Thai baht',
'symbol'=> '฿'),
array('code'=> 'TTD',
'countryname'=> 'Trinidad and Tobago',
'name'=> 'Trinidad and Tobago dollar',
'symbol'=> 'TT$'),
array('code'=> 'TRY',
'countryname'=> 'Turkey, Turkish Republic of Northern Cyprus',
'name'=> 'Turkey Lira',
'symbol'=> '₺'),
array('code'=> 'TVD',
'countryname'=> 'Tuvalu',
'name'=> 'Tuvaluan dollar',
'symbol'=> 'TV$'),
array('code'=> 'UAH',
'countryname'=> 'Ukraine',
'name'=> 'Ukrainian hryvnia',
'symbol'=> '₴'),
array('code'=> 'GBP',
'countryname'=> 'United Kingdom, Jersey, Guernsey, the Isle of Man, Gibraltar, South Georgia and the South Sandwich Islands, the British Antarctic Territory, and Tristan da Cunha',
'name'=> 'Pound sterling',
'symbol'=> '£'),
array('code'=> 'UGX',
'countryname'=> 'Uganda',
'name'=> 'Ugandan shilling',
'symbol'=> 'USh'),
array('code'=> 'USD',
'countryname'=> 'United States',
'name'=> 'United States dollar',
'symbol'=> '$'),
array('code'=> 'UYU',
'countryname'=> 'Uruguayan',
'name'=> 'Peso Uruguayolar',
'symbol'=> '$U'),
array('code'=> 'UZS',
'countryname'=> 'Uzbekistan',
'name'=> 'Uzbekistani soʻm',
'symbol'=> 'лв'),
array('code'=> 'VEF',
'countryname'=> 'Venezuela',
'name'=> 'Venezuelan bolívar',
'symbol'=> 'Bs'),
array('code'=> 'VND',
'countryname'=> 'Vietnam',
'name'=> 'Vietnamese dong (Đồng)',
'symbol'=> '₫'),
array('code'=> 'VND',
'countryname'=> 'Yemen',
'name'=> 'Yemeni rial',
'symbol'=> '﷼'),
array('code'=> 'ZWD',
'countryname'=> 'Zimbabwe',
'name'=> 'Zimbabwean dollar',
'symbol'=> 'Z$'),
);
In case someone want the javascript object array
[{"name":"Albania Lek","abbrev":"ALL"},{"name":"Afghanistan Afghani","abbrev":"AFN"},{"name":"Argentina Peso","abbrev":"ARS"},{"name":"Aruba Guilder","abbrev":"AWG"},{"name":"Australia Dollar","abbrev":"AUD"},{"name":"Azerbaijan New Manat","abbrev":"AZN"},{"name":"Bahamas Dollar","abbrev":"BSD"},{"name":"Barbados Dollar","abbrev":"BBD"},{"name":"Bangladeshi taka","abbrev":"BDT"},{"name":"Belarus Ruble","abbrev":"BYR"},{"name":"Belize Dollar","abbrev":"BZD"},{"name":"Bermuda Dollar","abbrev":"BMD"},{"name":"Bolivia Boliviano","abbrev":"BOB"},{"name":"Bosnia and Herzegovina Convertible Marka","abbrev":"BAM"},{"name":"Botswana Pula","abbrev":"BWP"},{"name":"Bulgaria Lev","abbrev":"BGN"},{"name":"Brazil Real","abbrev":"BRL"},{"name":"Brunei Darussalam Dollar","abbrev":"BND"},{"name":"Cambodia Riel","abbrev":"KHR"},{"name":"Canada Dollar","abbrev":"CAD"},{"name":"Cayman Islands Dollar","abbrev":"KYD"},{"name":"Chile Peso","abbrev":"CLP"},{"name":"China Yuan Renminbi","abbrev":"CNY"},{"name":"Colombia Peso","abbrev":"COP"},{"name":"Costa Rica Colon","abbrev":"CRC"},{"name":"Croatia Kuna","abbrev":"HRK"},{"name":"Cuba Peso","abbrev":"CUP"},{"name":"Czech Republic Koruna","abbrev":"CZK"},{"name":"Denmark Krone","abbrev":"DKK"},{"name":"Dominican Republic Peso","abbrev":"DOP"},{"name":"East Caribbean Dollar","abbrev":"XCD"},{"name":"Egypt Pound","abbrev":"EGP"},{"name":"El Salvador Colon","abbrev":"SVC"},{"name":"Euro Member Countries","abbrev":"EUR"},{"name":"Falkland Islands (Malvinas) Pound","abbrev":"FKP"},{"name":"Fiji Dollar","abbrev":"FJD"},{"name":"Ghana Cedis","abbrev":"GHC"},{"name":"Gibraltar Pound","abbrev":"GIP"},{"name":"Guatemala Quetzal","abbrev":"GTQ"},{"name":"Guernsey Pound","abbrev":"GGP"},{"name":"Guyana Dollar","abbrev":"GYD"},{"name":"Honduras Lempira","abbrev":"HNL"},{"name":"Hong Kong Dollar","abbrev":"HKD"},{"name":"Hungary Forint","abbrev":"HUF"},{"name":"Iceland Krona","abbrev":"ISK"},{"name":"India Rupee","abbrev":"INR"},{"name":"Indonesia Rupiah","abbrev":"IDR"},{"name":"Iran Rial","abbrev":"IRR"},{"name":"Isle of Man Pound","abbrev":"IMP"},{"name":"Israel Shekel","abbrev":"ILS"},{"name":"Jamaica Dollar","abbrev":"JMD"},{"name":"Japan Yen","abbrev":"JPY"},{"name":"Jersey Pound","abbrev":"JEP"},{"name":"Kazakhstan Tenge","abbrev":"KZT"},{"name":"Korea (North) Won","abbrev":"KPW"},{"name":"Korea (South) Won","abbrev":"KRW"},{"name":"Kyrgyzstan Som","abbrev":"KGS"},{"name":"Laos Kip","abbrev":"LAK"},{"name":"Lebanon Pound","abbrev":"LBP"},{"name":"Liberia Dollar","abbrev":"LRD"},{"name":"Macedonia Denar","abbrev":"MKD"},{"name":"Malaysia Ringgit","abbrev":"MYR"},{"name":"Mauritius Rupee","abbrev":"MUR"},{"name":"Mexico Peso","abbrev":"MXN"},{"name":"Mongolia Tughrik","abbrev":"MNT"},{"name":"Mozambique Metical","abbrev":"MZN"},{"name":"Namibia Dollar","abbrev":"NAD"},{"name":"Nepal Rupee","abbrev":"NPR"},{"name":"Netherlands Antilles Guilder","abbrev":"ANG"},{"name":"New Zealand Dollar","abbrev":"NZD"},{"name":"Nicaragua Cordoba","abbrev":"NIO"},{"name":"Nigeria Naira","abbrev":"NGN"},{"name":"Norway Krone","abbrev":"NOK"},{"name":"Oman Rial","abbrev":"OMR"},{"name":"Pakistan Rupee","abbrev":"PKR"},{"name":"Panama Balboa","abbrev":"PAB"},{"name":"Paraguay Guarani","abbrev":"PYG"},{"name":"Peru Nuevo Sol","abbrev":"PEN"},{"name":"Philippines Peso","abbrev":"PHP"},{"name":"Poland Zloty","abbrev":"PLN"},{"name":"Qatar Riyal","abbrev":"QAR"},{"name":"Romania New Leu","abbrev":"RON"},{"name":"Russia Ruble","abbrev":"RUB"},{"name":"Saint Helena Pound","abbrev":"SHP"},{"name":"Saudi Arabia Riyal","abbrev":"SAR"},{"name":"Serbia Dinar","abbrev":"RSD"},{"name":"Seychelles Rupee","abbrev":"SCR"},{"name":"Singapore Dollar","abbrev":"SGD"},{"name":"Solomon Islands Dollar","abbrev":"SBD"},{"name":"Somalia Shilling","abbrev":"SOS"},{"name":"South Africa Rand","abbrev":"ZAR"},{"name":"Sri Lanka Rupee","abbrev":"LKR"},{"name":"Sweden Krona","abbrev":"SEK"},{"name":"Switzerland Franc","abbrev":"CHF"},{"name":"Suriname Dollar","abbrev":"SRD"},{"name":"Syria Pound","abbrev":"SYP"},{"name":"Taiwan New Dollar","abbrev":"TWD"},{"name":"Thailand Baht","abbrev":"THB"},{"name":"Trinidad and Tobago Dollar","abbrev":"TTD"},{"name":"Turkey Lira","abbrev":"TRY"},{"name":"Turkey Lira","abbrev":"TRL"},{"name":"Tuvalu Dollar","abbrev":"TVD"},{"name":"Ukraine Hryvna","abbrev":"UAH"},{"name":"United Kingdom Pound","abbrev":"GBP"},{"name":"Uganda Shilling","abbrev":"UGX"},{"name":"United States Dollar","abbrev":"USD"},{"name":"Uruguay Peso","abbrev":"UYU"},{"name":"Uzbekistan Som","abbrev":"UZS"},{"name":"Venezuela Bolivar","abbrev":"VEF"},{"name":"Viet Nam Dong","abbrev":"VND"},{"name":"Yemen Rial","abbrev":"YER"},{"name":"Zimbabwe Dollar","abbrev":"ZWD"}]
I updated it and added some new column
$currencies = array(
array('code'=> 'ALL',
'countryname'=> 'Albania',
'name'=> 'Albanian lek',
'symbol'=> 'L'),array('code'=> 'AFN', 'countryname'=> 'Afghanistan', 'name'=> 'Afghanistan Afghani', 'symbol'=> '؋'), array('code'=> 'ARS', 'countryname'=> 'Argentina', 'name'=> 'Argentine Peso', 'symbol'=> '$'), array('code'=> 'AWG', 'countryname'=> 'Aruba', 'name'=> 'Aruban florin', 'symbol'=> 'ƒ'), array('code'=> 'AUD', 'countryname'=> 'Australia', 'name'=> 'Australian Dollar', 'symbol'=> 'A$'), array('code'=> 'AZN', 'countryname'=> 'Azerbaijan', 'name'=> 'Azerbaijani Manat', 'symbol'=> '₼'), array('code'=> 'BSD', 'countryname'=> 'The Bahamas', 'name'=> 'Bahamas Dollar', 'symbol'=> 'B$'), array('code'=> 'BBD', 'countryname'=> 'Barbados', 'name'=> 'Barbados Dollar', 'symbol'=> 'Bds$'), array('code'=> 'BDT', 'countryname'=> 'People\'s Republic of Bangladesh', 'name'=> 'Bangladeshi taka', 'symbol'=> '৳'), array('code'=> 'BYN', 'countryname'=> 'Belarus', 'name'=> 'Belarus Ruble', 'symbol'=> 'Br'), array('code'=> 'BZD', 'countryname'=> 'Belize', 'name'=> 'Belize Dollar', 'symbol'=> 'BZ$'), array('code'=> 'BMD', 'countryname'=> 'British Overseas Territory of Bermuda', 'name'=> 'Bermudian Dollar', 'symbol'=> 'BD$'), array('code'=> 'BOP', 'countryname'=> 'Bolivia', 'name'=> 'Boliviano', 'symbol'=> 'Bs'), array('code'=> 'BAM', 'countryname'=> 'Bosnia and Herzegovina', 'name'=> 'Bosnia-Herzegovina Convertible Marka', 'symbol'=> 'KM'), array('code'=> 'BWP', 'countryname'=> 'Botswana', 'name'=> 'Botswana pula', 'symbol'=> 'P'), array('code'=> 'BGN', 'countryname'=> 'Bulgaria', 'name'=> 'Bulgarian lev', 'symbol'=> 'лв'), array('code'=> 'BRL', 'countryname'=> 'Brazil', 'name'=> 'Brazilian real', 'symbol'=> 'R$'), array('code'=> 'BND', 'countryname'=> 'Sultanate of Brunei', 'name'=> 'Brunei dollar', 'symbol'=> 'B$'), array('code'=> 'KHR', 'countryname'=> 'Cambodia', 'name'=> 'Cambodian riel', 'symbol'=> '៛'), array('code'=> 'CAD', 'countryname'=> 'Canada', 'name'=> 'Canadian dollar', 'symbol'=> 'C$'), array('code'=> 'KYD', 'countryname'=> 'Cayman Islands', 'name'=> 'Cayman Islands dollar', 'symbol'=> '$'), array('code'=> 'CLP', 'countryname'=> 'Chile', 'name'=> 'Chilean peso', 'symbol'=> '$'), array('code'=> 'CNY', 'countryname'=> 'China', 'name'=> 'Chinese Yuan Renminbi', 'symbol'=> '¥'), array('code'=> 'COP', 'countryname'=> 'Colombia', 'name'=> 'Colombian peso', 'symbol'=> '$'), array('code'=> 'CRC', 'countryname'=> 'Costa Rica', 'name'=> 'Costa Rican colón', 'symbol'=> '₡'), array('code'=> 'HRK', 'countryname'=> 'Croatia', 'name'=> 'Croatian kuna', 'symbol'=> 'kn'), array('code'=> 'CUP', 'countryname'=> 'Cuba', 'name'=> 'Cuban peso', 'symbol'=> '₱'), array('code'=> 'CZK', 'countryname'=> 'Czech Republic', 'name'=> 'Czech koruna', 'symbol'=> 'Kč'), array('code'=> 'DKK', 'countryname'=> 'Denmark, Greenland, and the Faroe Islands', 'name'=> 'Danish krone', 'symbol'=> 'kr'), array('code'=> 'DOP', 'countryname'=> 'Dominican Republic', 'name'=> 'Dominican peso', 'symbol'=> 'RD$'), array('code'=> 'XCD', 'countryname'=> 'Antigua and Barbuda, Commonwealth of Dominica, Grenada, Montserrat, St. Kitts and Nevis, Saint Lucia and St. Vincent and the Grenadines', 'name'=> 'Eastern Caribbean dollar', 'symbol'=> '$'), array('code'=> 'EGP', 'countryname'=> 'Egypt', 'name'=> 'Egyptian pound', 'symbol'=> '£'), array('code'=> 'SVC', 'countryname'=> 'El Salvador', 'name'=> 'Salvadoran colón', 'symbol'=> '$'), array('code'=> 'EEK', 'countryname'=> 'Estonia', 'name'=> 'Estonian kroon', 'symbol'=> 'Kr'), array('code'=> 'EUR', 'countryname'=> 'European Union, Italy, Belgium, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden', 'name'=> 'Euro', 'symbol'=> '€'), array('code'=> 'FKP', 'countryname'=> 'Falkland Islands', 'name'=> 'Falkland Islands (Malvinas) Pound', 'symbol'=> 'FK£'), array('code'=> 'FJD', 'countryname'=> 'Fiji', 'name'=> 'Fijian dollar', 'symbol'=> 'FJ$'), array('code'=> 'GHC', 'countryname'=> 'Ghana', 'name'=> 'Ghanaian cedi', 'symbol'=> 'GH¢'), array('code'=> 'GIP', 'countryname'=> 'Gibraltar', 'name'=> 'Gibraltar pound', 'symbol'=> '£'), array('code'=> 'GTQ', 'countryname'=> 'Guatemala', 'name'=> 'Guatemalan quetzal', 'symbol'=> 'Q'), array('code'=> 'GGP', 'countryname'=> 'Guernsey', 'name'=> 'Guernsey pound', 'symbol'=> 'Q'), array('code'=> 'GYD', 'countryname'=> 'Guyana', 'name'=> 'Guyanese dollar', 'symbol'=> 'GY$'), array('code'=> 'HNL', 'countryname'=> 'Honduras', 'name'=> 'Honduran lempira', 'symbol'=> 'L'), array('code'=> 'HKD', 'countryname'=> 'Hong Kong', 'name'=> 'Hong Kong dollar', 'symbol'=> 'HK$'), array('code'=> 'HUF', 'countryname'=> 'Hungary', 'name'=> 'Hungarian forint', 'symbol'=> 'Ft'), array('code'=> 'ISK', 'countryname'=> 'Iceland', 'name'=> 'Icelandic króna', 'symbol'=> 'íkr'), array('code'=> 'INR', 'countryname'=> 'India', 'name'=> 'Indian rupee', 'symbol'=> '₹'), array('code'=> 'IDR', 'countryname'=> 'Indonesia', 'name'=> 'Indonesian rupiah', 'symbol'=> 'Rp'), array('code'=> 'IRR', 'countryname'=> 'Iran', 'name'=> 'Iranian rial', 'symbol'=> '﷼'), array('code'=> 'IMP', 'countryname'=> 'Isle of Man', 'name'=> 'Manx pound', 'symbol'=> '£'), array('code'=> 'ILS', 'countryname'=> 'Israel, Palestinian territories of the West Bank and the Gaza Strip', 'name'=> 'Israeli Shekel', 'symbol'=> '₪'), array('code'=> 'JMD', 'countryname'=> 'Jamaica', 'name'=> 'Jamaican dollar', 'symbol'=> 'J$'), array('code'=> 'JPY', 'countryname'=> 'Japan', 'name'=> 'Japanese yen', 'symbol'=> '¥'), array('code'=> 'JEP', 'countryname'=> 'Jersey', 'name'=> 'Jersey pound', 'symbol'=> '£'), array('code'=> 'KZT', 'countryname'=> 'Kazakhstan', 'name'=> 'Kazakhstani tenge', 'symbol'=> '₸'), array('code'=> 'KPW', 'countryname'=> 'North Korea', 'name'=> 'North Korean won', 'symbol'=> '₩'), array('code'=> 'KPW', 'countryname'=> 'South Korea', 'name'=> 'South Korean won', 'symbol'=> '₩'), array('code'=> 'KGS', 'countryname'=> 'Kyrgyz Republic', 'name'=> 'Kyrgyzstani som', 'symbol'=> 'лв'), array('code'=> 'LAK', 'countryname'=> 'Laos', 'name'=> 'Lao kip', 'symbol'=> '₭'), array('code'=> 'LAK', 'countryname'=> 'Laos', 'name'=> 'Latvian lats', 'symbol'=> '€'), array('code'=> 'LVL', 'countryname'=> 'Laos', 'name'=> 'Latvian lats', 'symbol'=> '€'), array('code'=> 'LBP', 'countryname'=> 'Lebanon', 'name'=> 'Lebanese pound', 'symbol'=> 'L£'), array('code'=> 'LRD', 'countryname'=> 'Liberia', 'name'=> 'Liberian dollar', 'symbol'=> 'LD$'), array('code'=> 'LTL', 'countryname'=> 'Lithuania', 'name'=> 'Lithuanian litas', 'symbol'=> '€'), array('code'=> 'MKD', 'countryname'=> 'North Macedonia', 'name'=> 'Macedonian denar', 'symbol'=> 'ден'), array('code'=> 'MYR', 'countryname'=> 'Malaysia', 'name'=> 'Malaysian ringgit', 'symbol'=> 'RM'), array('code'=> 'MUR', 'countryname'=> 'Mauritius', 'name'=> 'Mauritian rupee', 'symbol'=> 'Rs'), array('code'=> 'MXN', 'countryname'=> 'Mexico', 'name'=> 'Mexican peso', 'symbol'=> 'Mex$'), array('code'=> 'MNT', 'countryname'=> 'Mongolia', 'name'=> 'Mongolian tögrög', 'symbol'=> '₮'), array('code'=> 'MZN', 'countryname'=> 'Mozambique', 'name'=> 'Mozambican metical', 'symbol'=> 'MT'), array('code'=> 'NAD', 'countryname'=> 'Namibia', 'name'=> 'Namibian dollar', 'symbol'=> 'N$'), array('code'=> 'NPR', 'countryname'=> 'Federal Democratic Republic of Nepal', 'name'=> 'Nepalese rupee', 'symbol'=> 'Rs.'), array('code'=> 'ANG', 'countryname'=> 'Curaçao and Sint Maarten', 'name'=> 'Netherlands Antillean guilder', 'symbol'=> 'ƒ'), array('code'=> 'NZD', 'countryname'=> 'New Zealand, the Cook Islands, Niue, the Ross Dependency, Tokelau, the Pitcairn Islands', 'name'=> 'New Zealand dollar', 'symbol'=> '$'), array('code'=> 'NIO', 'countryname'=> 'Nicaragua', 'name'=> 'Nicaraguan córdoba', 'symbol'=> 'C$'), array('code'=> 'NGN', 'countryname'=> 'Nigeria', 'name'=> 'Nigerian naira', 'symbol'=> '₦'), array('code'=> 'NOK', 'countryname'=> 'Norway and its dependent territories', 'name'=> 'Norwegian krone', 'symbol'=> 'kr'), array('code'=> 'OMR', 'countryname'=> 'Oman', 'name'=> 'Omani rial', 'symbol'=> '﷼'), array('code'=> 'PKR', 'countryname'=> 'Pakistan', 'name'=> 'Pakistani rupee', 'symbol'=> 'Rs'), array('code'=> 'PAB', 'countryname'=> 'Panama', 'name'=> 'Panamanian balboa', 'symbol'=> 'B/.'), array('code'=> 'PYG', 'countryname'=> 'Paraguay', 'name'=> 'Paraguayan Guaraní', 'symbol'=> '₲'), array('code'=> 'PEN', 'countryname'=> 'Peru', 'name'=> 'Sol', 'symbol'=> 'S/.'), array('code'=> 'PHP', 'countryname'=> 'Philippines', 'name'=> 'Philippine peso', 'symbol'=> '₱'), array('code'=> 'PLN', 'countryname'=> 'Poland', 'name'=> 'Polish złoty', 'symbol'=> 'zł'), array('code'=> 'QAR', 'countryname'=> 'State of Qatar', 'name'=> 'Qatari Riyal', 'symbol'=> '﷼'), array('code'=> 'RON', 'countryname'=> 'Romania', 'name'=> 'Romanian leu (Leu românesc)', 'symbol'=> 'L'), array('code'=> 'RUB', 'countryname'=> 'Russian Federation, Abkhazia and South Ossetia, Donetsk and Luhansk', 'name'=> 'Russian ruble', 'symbol'=> '₽'), array('code'=> 'SHP', 'countryname'=> 'Saint Helena, Ascension and Tristan da Cunha', 'name'=> 'Saint Helena pound', 'symbol'=> '£'), array('code'=> 'SAR', 'countryname'=> 'Saudi Arabia', 'name'=> 'Saudi riyal', 'symbol'=> '﷼'), array('code'=> 'RSD', 'countryname'=> 'Serbia', 'name'=> 'Serbian dinar', 'symbol'=> 'din'), array('code'=> 'SCR', 'countryname'=> 'Seychelles', 'name'=> 'Seychellois rupee', 'symbol'=> 'Rs'), array('code'=> 'SGD', 'countryname'=> 'Singapore', 'name'=> 'Singapore dollar', 'symbol'=> 'S$'), array('code'=> 'SBD', 'countryname'=> 'Solomon Islands', 'name'=> 'Solomon Islands dollar', 'symbol'=> 'SI$'), array('code'=> 'SOS', 'countryname'=> 'Somalia', 'name'=> 'Somali shilling', 'symbol'=> 'Sh.So'), array('code'=> 'ZAR', 'countryname'=> 'South Africa', 'name'=> 'South African rand', 'symbol'=> 'R'), array('code'=> 'LKR', 'countryname'=> 'Sri Lanka', 'name'=> 'Sri Lankan rupee', 'symbol'=> 'Rs'), array('code'=> 'SEK', 'countryname'=> 'Sweden', 'name'=> 'Swedish krona', 'symbol'=> 'kr'), array('code'=> 'CHF', 'countryname'=> 'Switzerland', 'name'=> 'Swiss franc', 'symbol'=> 'CHf'), array('code'=> 'SRD', 'countryname'=> 'Suriname', 'name'=> 'Suriname Dollar', 'symbol'=> 'Sr$'), array('code'=> 'SYP', 'countryname'=> 'Syria', 'name'=> 'Syrian pound', 'symbol'=> '£S'), array('code'=> 'TWD', 'countryname'=> 'Taiwan', 'name'=> 'New Taiwan dollar', 'symbol'=> 'NT$'), array('code'=> 'THB', 'countryname'=> 'Thailand', 'name'=> 'Thai baht', 'symbol'=> '฿'), array('code'=> 'TTD', 'countryname'=> 'Trinidad and Tobago', 'name'=> 'Trinidad and Tobago dollar', 'symbol'=> 'TT$'), array('code'=> 'TRY', 'countryname'=> 'Turkey, Turkish Republic of Northern Cyprus', 'name'=> 'Turkey Lira', 'symbol'=> '₺'), array('code'=> 'TVD', 'countryname'=> 'Tuvalu', 'name'=> 'Tuvaluan dollar', 'symbol'=> 'TV$'), array('code'=> 'UAH', 'countryname'=> 'Ukraine', 'name'=> 'Ukrainian hryvnia', 'symbol'=> '₴'), array('code'=> 'GBP', 'countryname'=> 'United Kingdom, Jersey, Guernsey, the Isle of Man, Gibraltar, South Georgia and the South Sandwich Islands, the British Antarctic Territory, and Tristan da Cunha', 'name'=> 'Pound sterling', 'symbol'=> '£'), array('code'=> 'UGX', 'countryname'=> 'Uganda', 'name'=> 'Ugandan shilling', 'symbol'=> 'USh'), array('code'=> 'USD', 'countryname'=> 'United States', 'name'=> 'United States dollar', 'symbol'=> '$'), array('code'=> 'UYU', 'countryname'=> 'Uruguayan', 'name'=> 'Peso Uruguayolar', 'symbol'=> '$U'), array('code'=> 'UZS', 'countryname'=> 'Uzbekistan', 'name'=> 'Uzbekistani soʻm', 'symbol'=> 'лв'), array('code'=> 'VEF', 'countryname'=> 'Venezuela', 'name'=> 'Venezuelan bolívar', 'symbol'=> 'Bs'), array('code'=> 'VND', 'countryname'=> 'Vietnam', 'name'=> 'Vietnamese dong (Đồng)', 'symbol'=> '₫'), array('code'=> 'VND', 'countryname'=> 'Yemen', 'name'=> 'Yemeni rial', 'symbol'=> '﷼'), array('code'=> 'ZWD', 'countryname'=> 'Zimbabwe', 'name'=> 'Zimbabwean dollar', 'symbol'=> 'Z$'),
);
After quick checking - there can be mistakes like with Poland (euro is not used there)
array('code'=> 'PLN',
'countryname'=> 'Poland',
'name'=> 'Polish złoty',
'symbol'=> 'zł'),
May be useful too
array ('ALL','AFN','ARS','AWG','AUD','AZN','BSD','BBD','BDT','BYR','BZD','BMD','BOB','BAM','BWP','BGN','BRL','BND','KHR','CAD','KYD','CLP','CNY','COP','CRC','HRK','CUP','CZK','DKK','DOP','XCD','EGP','SVC','EEK','EUR','FKP','FJD','GHC','GIP','GTQ','GGP','GYD','HNL','HKD','HUF','ISK','INR','IDR','IRR','IMP','ILS','JMD','JPY','JEP','KZT','KPW','KRW','KGS','LAK','LVL','LBP','LRD','LTL','MKD','MYR','MUR','MXN','MNT','MZN','NAD','NPR','ANG','NZD','NIO','NGN','NOK','OMR','PKR','PAB','PYG','PEN','PHP','PLN','QAR','RON','RUB','SHP','SAR','RSD','SCR','SGD','SBD','SOS','ZAR','LKR','SEK','CHF','SRD','SYP','TWD','THB','TTD','TRY','TRL','TVD','UAH','GBP','USD','UYU','UZS','VEF','VND','YER','ZWD')
thank you for the array @SimonKane, needed to use it in JS and your format was just what I needed.
may be useful who need a currency symbol
<?php
// function get currency symbol by currency code
function get_currency_symbol($currency = '')
{
$symbols = array(
'AED' => 'د.إ', // ?
'AFN' => 'Af',
'ALL' => 'Lek',
'AMD' => '֏',
'ANG' => 'ƒ',
'AOA' => 'Kz', // ?
'ARS' => '$',
'AUD' => '$',
'AWG' => 'ƒ',
'AZN' => 'ман',
'BAM' => 'KM',
'BBD' => '$',
'BDT' => '৳', // ?
'BGN' => 'лв',
'BHD' => '.د.ب', // ?
'BIF' => 'FBu', // ?
'BMD' => '$',
'BND' => '$',
'BOB' => '$b',
'BRL' => 'R$',
'BSD' => '$',
'BTC' => '฿',
'BTN' => 'Nu.', // ?
'BWP' => 'P',
'BYR' => 'p.',
'BYN' => 'Br',
'BZD' => 'BZ$',
'CAD' => '$',
'CDF' => 'FC',
'CHF' => 'CHF',
'CLF' => '', // ?
'CLP' => '$',
'CNY' => '¥',
'COP' => '$',
'CRC' => '₡',
'CUC' => '⃌',
'CUP' => '⃌',
'CVE' => '$', // ?
'CZK' => 'Kč',
'DJF' => 'Fdj', // ?
'DKK' => 'kr',
'DOP' => 'RD$',
'DZD' => 'دج', // ?
'EGP' => '£',
'ERN' => 'Nfk', // ?
'ETB' => 'Br',
'EUR' => '€',
'FJD' => '$',
'FKP' => '£',
'GBP' => '£',
'GEL' => 'ლ', // ?
'GGP' => '£',
'GHS' => '¢',
'GIP' => '£',
'GMD' => 'D', // ?
'GNF' => 'FG', // ?
'GTQ' => 'Q',
'GYD' => '$',
'HKD' => '$',
'HNL' => 'L',
'HRK' => 'kn',
'HTG' => 'G', // ?
'PKE' => '$',
'HUF' => 'Ft',
'IDR' => 'Rp',
'ILS' => '₪',
'IMP' => '£',
'INR' => '₹',
'IQD' => 'ع.د', // ?
'IRR' => '﷼',
'IRT' => '﷼',
'ISK' => 'kr',
'JEP' => '£',
'JMD' => 'J$',
'JOD' => 'JD', // ?
'JPY' => '¥',
'KES' => 'KSh', // ?
'KGS' => 'лв',
'KHR' => '៛',
'KMF' => 'CF', // ?
'KPW' => '₩',
'KRW' => '₩',
'KWD' => 'د.ك', // ?
'KYD' => '$',
'KZT' => 'лв',
'LAK' => '₭',
'LBP' => '£',
'LKR' => '₨',
'LRD' => '$',
'LSL' => 'L', // ?
'LTL' => 'Lt',
'LVL' => 'Ls',
'LYD' => 'ل.د', // ?
'MAD' => 'د.م.', //?
'MDL' => 'L',
'MGA' => 'Ar', // ?
'MKD' => 'ден',
'MMK' => 'K',
'MNT' => '₮',
'MOP' => 'MOP$', // ?
'MRO' => 'UM', // ?
'MUR' => '₨', // ?
'MVR' => '.ރ', // ?
'MWK' => 'MK',
'MXN' => '$',
'MYR' => 'RM',
'MZN' => 'MT',
'NAD' => '$',
'NGN' => '₦',
'NIO' => 'C$',
'NOK' => 'kr',
'NPR' => '₨',
'NZD' => '$',
'OMR' => '﷼',
'PAB' => 'B/.',
'PEN' => 'S/.',
'PGK' => 'K', // ?
'PHP' => '₱',
'PKR' => '₨',
'PLN' => 'zł',
'PYG' => 'Gs',
'QAR' => '﷼',
'RON' => 'lei',
'RSD' => 'Дин.',
'RUB' => 'руб',
'RWF' => 'ر.س',
'SAR' => '﷼',
'SBD' => '$',
'SCR' => '₨',
'SDG' => '£', // ?
'SEK' => 'kr',
'SGD' => '$',
'SHP' => '£',
'SLL' => 'Le', // ?
'SOS' => 'S',
'SPL' => '£',
'SRD' => '$',
'STD' => 'Db', // ?
'SVC' => '$',
'SYP' => '£',
'SZL' => 'L', // ?
'THB' => '฿',
'TJS' => 'TJS', // ? TJS (guess)
'TMT' => 'm',
'TND' => 'د.ت',
'TOP' => 'T$',
'TRY' => '₤', // New Turkey Lira (old symbol used)
'TTD' => '$',
'TVD' => '$',
'TWD' => 'NT$',
'TZS' => '',
'UAH' => '₴',
'UGX' => 'USh',
'USD' => '$',
'UYU' => '$U',
'UZS' => 'лв',
'VEF' => 'Bs',
'VND' => '₫',
'VUV' => 'VT',
'WST' => 'WS$',
'XAF' => 'FCFA',
'XCD' => '$',
'XDR' => '',
'XOF' => '',
'XPF' => 'F',
'ZAR' => 'R',
'ZMW' => 'ZK',
);
if (isset($symbols[$currency])) {
return $symbols[$currency];
}
return $currency;
}
echo get_currency_symbol('USD');
?>
Hey awesome work, I have a dumb question, how can we display the symbols? do we have a specific php function for this?
Edited: I discovered that is an html entity, so I use this website to preview the display https://html.onlineviewer.net/
The function
Hey awesome work, I have a dumb question, how can we display the symbols? do we have a specific php function for this?
The function rajaishtiaq6 shared is written in PHP though, you should try it out.
This is more better
function currencyList(?string $code = null, bool $decode_html_entity = true): array|null
{
$currencies = [
['code' => 'AFN', 'countries' => ['Afghanistan'], 'name' => 'Afghanistan Afghani', 'symbol' => '؋'],
['code' => 'ARS', 'countries' => ['Argentina'], 'name' => 'Argentine Peso', 'symbol' => '$'],
['code' => 'AWG', 'countries' => ['Aruba'], 'name' => 'Aruban florin', 'symbol' => 'ƒ'],
['code' => 'AUD', 'countries' => ['Australia'], 'name' => 'Australian Dollar', 'symbol' => 'A$'],
['code' => 'AZN', 'countries' => ['Azerbaijan'], 'name' => 'Azerbaijani Manat', 'symbol' => '₼'],
['code' => 'BSD', 'countries' => ['The Bahamas'], 'name' => 'Bahamas Dollar', 'symbol' => 'B$'],
['code' => 'BBD', 'countries' => ['Barbados'], 'name' => 'Barbados Dollar', 'symbol' => 'Bds$'],
['code' => 'BDT', 'countries' => ['People\'s Republic of Bangladesh'], 'name' => 'Bangladeshi taka', 'symbol' => '৳'],
['code' => 'BYN', 'countries' => ['Belarus'], 'name' => 'Belarus Ruble', 'symbol' => 'Br'],
['code' => 'BZD', 'countries' => ['Belize'], 'name' => 'Belize Dollar', 'symbol' => 'BZ$'],
['code' => 'BMD', 'countries' => ['British Overseas Territory of Bermuda'], 'name' => 'Bermudian Dollar', 'symbol' => 'BD$'],
['code' => 'BOP', 'countries' => ['Bolivia'], 'name' => 'Boliviano', 'symbol' => 'Bs'],
['code' => 'BAM', 'countries' => ['Bosnia', 'Herzegovina'], 'name' => 'Bosnia-Herzegovina Convertible Marka', 'symbol' => 'KM'],
['code' => 'BWP', 'countries' => ['Botswana'], 'name' => 'Botswana pula', 'symbol' => 'P'],
['code' => 'BGN', 'countries' => ['Bulgaria'], 'name' => 'Bulgarian lev', 'symbol' => 'лв'],
['code' => 'BRL', 'countries' => ['Brazil'], 'name' => 'Brazilian real', 'symbol' => 'R$'],
['code' => 'BND', 'countries' => ['Sultanate of Brunei'], 'name' => 'Brunei dollar', 'symbol' => 'B$'],
['code' => 'KHR', 'countries' => ['Cambodia'], 'name' => 'Cambodian riel', 'symbol' => '៛'],
['code' => 'CAD', 'countries' => ['Canada'], 'name' => 'Canadian dollar', 'symbol' => 'C$'],
['code' => 'KYD', 'countries' => ['Cayman Islands'], 'name' => 'Cayman Islands dollar', 'symbol' => '$'],
['code' => 'CLP', 'countries' => ['Chile'], 'name' => 'Chilean peso', 'symbol' => '$'],
['code' => 'CNY', 'countries' => ['China'], 'name' => 'Chinese Yuan Renminbi', 'symbol' => '¥'],
['code' => 'COP', 'countries' => ['Colombia'], 'name' => 'Colombian peso', 'symbol' => '$'],
['code' => 'CRC', 'countries' => ['Costa Rica'], 'name' => 'Costa Rican colón', 'symbol' => '₡'],
['code' => 'HRK', 'countries' => ['Croatia'], 'name' => 'Croatian kuna', 'symbol' => 'kn'],
['code' => 'CUP', 'countries' => ['Cuba'], 'name' => 'Cuban peso', 'symbol' => '₱'],
['code' => 'CZK', 'countries' => ['Czech Republic'], 'name' => 'Czech koruna', 'symbol' => 'Kč'],
['code' => 'DKK', 'countries' => ['Denmark', 'Greenland', 'The Faroe Islands'], 'name' => 'Danish krone', 'symbol' => 'kr'],
['code' => 'DOP', 'countries' => ['Dominican Republic'], 'name' => 'Dominican peso', 'symbol' => 'RD$'],
['code' => 'XCD', 'countries' => ['Antigua and Barbuda', 'Commonwealth of Dominica', 'Grenada', 'Montserrat', 'St. Kitts and Nevis', 'Saint Lucia and St. Vincent', 'The Grenadines'], 'name' => 'Eastern Caribbean dollar', 'symbol'=> '$'],
['code' => 'EGP', 'countries' => ['Egypt'], 'name' => 'Egyptian pound', 'symbol' => '£'],
['code' => 'SVC', 'countries' => ['El Salvador'], 'name' => 'Salvadoran colón', 'symbol' => '$'],
['code' => 'EEK', 'countries' => ['Estonia'], 'name' => 'Estonian kroon', 'symbol' => 'Kr'],
['code' => 'EUR', 'countries' => ['European Union', 'Italy', 'Belgium', 'Bulgaria', 'Croatia', 'Cyprus', 'Czechia', 'Denmark', 'Estonia', 'Finland', 'France', 'Germany', 'Greece', 'Hungary', 'Ireland', 'Latvia', 'Lithuania', 'Luxembourg', 'Malta', 'Netherlands', 'Poland', 'Portugal', 'Romania', 'Slovakia', 'Slovenia', 'Spain', 'Sweden'], 'name' => 'Euro', 'symbol' => '€'],
['code' => 'FKP', 'countries' => ['Falkland Islands'], 'name' => 'Falkland Islands (Malvinas) Pound', 'symbol' => 'FK£'],
['code' => 'FJD', 'countries' => ['Fiji'], 'name' => 'Fijian dollar', 'symbol' => 'FJ$'],
['code' => 'GHC', 'countries' => ['Ghana'], 'name' => 'Ghanaian cedi', 'symbol'=> 'GH¢'],
['code' => 'GIP', 'countries' => ['Gibraltar'], 'name' => 'Gibraltar pound', 'symbol' => '£'],
['code' => 'GTQ', 'countries' => ['Guatemala'], 'name' => 'Guatemalan quetzal', 'symbol' => 'Q'],
['code' => 'GGP', 'countries' => ['Guernsey'], 'name' => 'Guernsey pound', 'symbol' => 'Q'],
['code' => 'GYD', 'countries' => ['Guyana'], 'name' => 'Guyanese dollar', 'symbol' => 'GY$'],
['code' => 'HNL', 'countries' => ['Honduras'], 'name' => 'Honduran lempira', 'symbol' => 'L'],
['code' => 'HKD', 'countries' => ['Hong Kong'], 'name' => 'Hong Kong dollar', 'symbol' => 'HK$'],
['code' => 'HUF', 'countries' => ['Hungary'], 'name' => 'Hungarian forint', 'symbol' => 'Ft'],
['code' => 'ISK', 'countries' => ['Iceland'], 'name' => 'Icelandic króna', 'symbol' => 'íkr'],
['code' => 'INR', 'countries' => ['India'], 'name' => 'Indian rupee', 'symbol' => '₹'],
['code' => 'IDR', 'countries' => ['Indonesia'], 'name' => 'Indonesian rupiah', 'symbol' => 'Rp'],
['code' => 'IRR', 'countries' => ['Iran'], 'name' => 'Iranian rial', 'symbol' => '﷼'],
['code' => 'IMP', 'countries' => ['Isle of Man'], 'name' => 'Manx pound', 'symbol' => '£'],
['code' => 'ILS', 'countries' => ['Israel', 'Palestinian territories of the West Bank', 'The Gaza Strip'], 'name' => 'Israeli Shekel', 'symbol' => '₪'],
['code' => 'JMD', 'countries' => ['Jamaica'], 'name' => 'Jamaican dollar', 'symbol' => 'J$'],
['code' => 'JPY', 'countries' => ['Japan'], 'name' => 'Japanese yen', 'symbol' => '¥'],
['code' => 'JEP', 'countries' => ['Jersey'], 'name' => 'Jersey pound', 'symbol' => '£'],
['code' => 'KZT', 'countries' => ['Kazakhstan'], 'name' => 'Kazakhstani tenge', 'symbol' => '₸'],
['code' => 'KPW', 'countries' => ['North Korea'], 'name' => 'North Korean won', 'symbol' => '₩'],
['code' => 'KPW', 'countries' => ['South Korea'], 'name' => 'South Korean won', 'symbol' => '₩'],
['code' => 'KGS', 'countries' => ['Kyrgyz Republic'], 'name' => 'Kyrgyzstani som', 'symbol' => 'лв'],
['code' => 'LAK', 'countries' => ['Laos'], 'name' => 'Lao kip', 'symbol' => '₭'],
['code' => 'LAK', 'countries' => ['Laos'], 'name' => 'Latvian lats', 'symbol' => '€'],
['code' => 'LVL', 'countries' => ['Laos'], 'name' => 'Latvian lats', 'symbol' => '€'],
['code' => 'LBP', 'countries' => ['Lebanon'], 'name' => 'Lebanese pound', 'symbol' => 'L£'],
['code' => 'LRD', 'countries' => ['Liberia'], 'name' => 'Liberian dollar', 'symbol' => 'LD$'],
['code' => 'LTL', 'countries' => ['Lithuania'], 'name' => 'Lithuanian litas', 'symbol' => '€'],
['code' => 'MKD', 'countries' => ['North Macedonia'], 'name' => 'Macedonian denar', 'symbol' => 'ден'],
['code' => 'MYR', 'countries' => ['Malaysia'], 'name' => 'Malaysian ringgit', 'symbol' => 'RM'],
['code' => 'MUR', 'countries' => ['Mauritius'], 'name' => 'Mauritian rupee', 'symbol' => 'Rs'],
['code' => 'MXN', 'countries' => ['Mexico'], 'name' => 'Mexican peso', 'symbol' => 'Mex$'],
['code' => 'MNT', 'countries' => ['Mongolia'], 'name' => 'Mongolian tögrög', 'symbol' => '₮'],
['code' => 'MZN', 'countries' => ['Mozambique'], 'name' => 'Mozambican metical', 'symbol' => 'MT'],
['code' => 'NAD', 'countries' => ['Namibia'], 'name' => 'Namibian dollar', 'symbol' => 'N$'],
['code' => 'NPR', 'countries' => ['Federal Democratic Republic of Nepal'], 'name' => 'Nepalese rupee', 'symbol'=> 'Rs.'],
['code' => 'ANG', 'countries' => ['Curaçao', 'Sint Maarten'], 'name' => 'Netherlands Antillean guilder', 'symbol' => 'ƒ'],
['code' => 'NZD', 'countries' => ['New Zealand', 'The Cook Islands', 'Niue', 'The Ross Dependency', 'Tokelau', 'The Pitcairn Islands'], 'name' => 'New Zealand Dollar', 'symbol' => '$'],
['code' => 'NIO', 'countries' => ['Nicaragua'], 'name' => 'Nicaraguan córdoba', 'symbol' => 'C$'],
['code' => 'NGN', 'countries' => ['Nigeria'], 'name'=> 'Nigerian Naira', 'symbol' => '₦'],
['code' => 'NOK', 'countries' => ['Norway and its dependent territories'], 'name' => 'Norwegian krone', 'symbol'=> 'kr'],
['code' => 'OMR', 'countries' => ['Oman'], 'name' => 'Omani rial', 'symbol' => '﷼'],
['code' => 'PKR', 'countries' => ['Pakistan'], 'name' => 'Pakistani rupee', 'symbol' => 'Rs'],
['code' => 'PAB', 'countries' => ['Panama'], 'name' => 'Panamanian balboa', 'symbol' => 'B/.'],
['code' => 'PYG', 'countries' => ['Paraguay'], 'name' => 'Paraguayan Guaraní', 'symbol' => '₲'],
['code' => 'PEN', 'countries' => ['Peru'], 'name' => 'Sol', 'symbol' => 'S/.'],
['code' => 'PHP', 'countries' => ['Philippines'], 'name' => 'Philippine peso', 'symbol' => '₱'],
['code' => 'PLN', 'countries' => ['Poland'], 'name' => 'Polish złoty', 'symbol' => 'zł'],
['code' => 'QAR', 'countries' => ['State of Qatar'], 'name' => 'Qatari Riyal', 'symbol' => '﷼'],
['code' => 'RON', 'countries' => ['Romania'], 'name' => 'Romanian leu (Leu românesc)', 'symbol' => 'L'],
['code' => 'RUB', 'countries' => ['Russian Federation', 'Abkhazia and South Ossetia', 'Donetsk and Luhansk'], 'name' => 'Russian ruble', 'symbol' => '₽'],
['code' => 'SHP', 'countries' => ['Saint Helena', 'Ascension', 'Tristan da Cunha'], 'name' => 'Saint Helena pound', 'symbol' => '£'],
['code' => 'SAR', 'countries' => ['Saudi Arabia'], 'name' => 'Saudi riyal', 'symbol' => '﷼'],
['code' => 'RSD', 'countries' => ['Serbia'], 'name' => 'Serbian dinar', 'symbol' => 'din'],
['code' => 'SCR', 'countries' => ['Seychelles'], 'name' => 'Seychellois rupee', 'symbol' => 'Rs'],
['code' => 'SGD', 'countries' => ['Singapore'], 'name' => 'Singapore dollar', 'symbol' => 'S$'],
['code' => 'SBD', 'countries' => ['Solomon Islands'], 'name' => 'Solomon Islands dollar', 'symbol' => 'SI$'],
['code' => 'SOS', 'countries' => ['Somalia'], 'name' => 'Somali shilling', 'symbol' => 'Sh.So'],
['code' => 'ZAR', 'countries' => ['South Africa'], 'name' => 'South African rand', 'symbol' => 'R'],
['code' => 'LKR', 'countries' => ['Sri Lanka'], 'name' => 'Sri Lankan rupee', 'symbol' => 'Rs'],
['code' => 'SEK', 'countries' => ['Sweden'], 'name' => 'Swedish krona', 'symbol' => 'kr'],
['code' => 'CHF', 'countries' => ['Switzerland'], 'name' => 'Swiss franc', 'symbol' => 'CHf'],
['code' => 'SRD', 'countries' => ['Suriname'], 'name' => 'Suriname Dollar', 'symbol' => 'Sr$'],
['code' => 'SYP', 'countries' => ['Syria'], 'name' => 'Syrian pound', 'symbol' => '£S'],
['code' => 'TWD', 'countries' => ['Taiwan'], 'name' => 'New Taiwan dollar', 'symbol' => 'NT$'],
['code' => 'THB', 'countries' => ['Thailand'], 'name' => 'Thai baht', 'symbol' => '฿'],
['code' => 'TTD', 'countries' => ['Trinidad', 'Tobago'], 'name' => 'Trinidad and Tobago dollar', 'symbol' => 'TT$'],
['code' => 'TRY', 'countries' => ['Turkey', 'Turkish Republic of Northern Cyprus'], 'name' => 'Turkey Lira', 'symbol' => '₺'],
['code' => 'TVD', 'countries' => ['Tuvalu'], 'name' => 'Tuvaluan dollar', 'symbol' => 'TV$'],
['code' => 'UAH', 'countries' => ['Ukraine'], 'name' => 'Ukrainian hryvnia', 'symbol' => '₴'],
['code' => 'GBP', 'countries' => ['United Kingdom', 'Jersey', 'Guernsey', 'The Isle of Man', 'Gibraltar', 'South Georgia', 'The South Sandwich Islands', 'The British Antarctic', 'Territory', 'Tristan da Cunha'], 'name' => 'Pound sterling', 'symbol' => '£'],
['code' => 'UGX', 'countries' => ['Uganda'], 'name' => 'Ugandan shilling', 'symbol' => 'USh'],
['code' => 'USD', 'countries' => ['United States'], 'name' => 'United States dollar', 'symbol' => '$'],
['code' => 'UYU', 'countries' => ['Uruguayan'], 'name' => 'Peso Uruguayolar', 'symbol' => '$U'],
['code' => 'UZS', 'countries' => ['Uzbekistan'], 'name' => 'Uzbekistani soʻm', 'symbol' => 'лв'],
['code' => 'VEF', 'countries' => ['Venezuela'], 'name' => 'Venezuelan bolívar', 'symbol' => 'Bs'],
['code' => 'VND', 'countries' => ['Vietnam'], 'name' => 'Vietnamese dong (Đồng)', 'symbol' => '₫'],
['code' => 'VND', 'countries' => ['Yemen'], 'name' => 'Yemeni rial', 'symbol' => '﷼'],
['code' => 'ZWD', 'countries' => ['Zimbabwe'], 'name' => 'Zimbabwean dollar', 'symbol' => 'Z$'],
];
if (true === $decode_html_entity) {
$currencies = array_map(function ($each_cur) {
$each_cur['symbol'] = html_entity_decode($each_cur['symbol']);
return $each_cur;
}, $currencies);
}
if (!is_null($code)) {
return array_values(array_filter($currencies, fn ($c) => strtolower($c['code']) === strtolower($code)))[0] ?? null;
}
return $currencies;
}
For those who want it reversed.