Skip to content

Instantly share code, notes, and snippets.

@champsupertramp
Forked from MindaugasR/currency_list
Last active July 15, 2024 14:06
Show Gist options
  • Save champsupertramp/95493faa7ba12b61bf6e to your computer and use it in GitHub Desktop.
Save champsupertramp/95493faa7ba12b61bf6e to your computer and use it in GitHub Desktop.
World Currency list in PHP Array
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'
);
@crushcafeteria
Copy link

Where is the Kenyan shillling?

@VMBindraban
Copy link

Have fun:

"currency": {
    "AED": "United Arab Emirates dirham",
    "AFN": "Afghan afghani",
    "ALL": "Albanian lek",
    "AMD": "Armenian dram",
    "ANG": "Netherlands Antillean guilder",
    "AOA": "Angolan kwanza",
    "ARS": "Argentine peso",
    "AUD": "Australian dollar",
    "AWG": "Aruban florin",
    "AZN": "Azerbaijani manat",
    "BAM": "Bosnia and Herzegovina convertible mark",
    "BBD": "Barbados dollar",
    "BDT": "Bangladeshi taka",
    "BGN": "Bulgarian lev",
    "BHD": "Bahraini dinar",
    "BIF": "Burundian franc",
    "BMD": "Bermudian dollar",
    "BND": "Brunei dollar",
    "BOB": "Boliviano",
    "BRL": "Brazilian real",
    "BSD": "Bahamian dollar",
    "BTN": "Bhutanese ngultrum",
    "BWP": "Botswana pula",
    "BYN": "New Belarusian ruble",
    "BYR": "Belarusian ruble",
    "BZD": "Belize dollar",
    "CAD": "Canadian dollar",
    "CDF": "Congolese franc",
    "CHF": "Swiss franc",
    "CLF": "Unidad de Fomento",
    "CLP": "Chilean peso",
    "CNY": "Renminbi|Chinese yuan",
    "COP": "Colombian peso",
    "CRC": "Costa Rican colon",
    "CUC": "Cuban convertible peso",
    "CUP": "Cuban peso",
    "CVE": "Cape Verde escudo",
    "CZK": "Czech koruna",
    "DJF": "Djiboutian franc",
    "DKK": "Danish krone",
    "DOP": "Dominican peso",
    "DZD": "Algerian dinar",
    "EGP": "Egyptian pound",
    "ERN": "Eritrean nakfa",
    "ETB": "Ethiopian birr",
    "EUR": "Euro",
    "FJD": "Fiji dollar",
    "FKP": "Falkland Islands pound",
    "GBP": "Pound sterling",
    "GEL": "Georgian lari",
    "GHS": "Ghanaian cedi",
    "GIP": "Gibraltar pound",
    "GMD": "Gambian dalasi",
    "GNF": "Guinean franc",
    "GTQ": "Guatemalan quetzal",
    "GYD": "Guyanese dollar",
    "HKD": "Hong Kong dollar",
    "HNL": "Honduran lempira",
    "HRK": "Croatian kuna",
    "HTG": "Haitian gourde",
    "HUF": "Hungarian forint",
    "IDR": "Indonesian rupiah",
    "ILS": "Israeli new shekel",
    "INR": "Indian rupee",
    "IQD": "Iraqi dinar",
    "IRR": "Iranian rial",
    "ISK": "Icelandic króna",
    "JMD": "Jamaican dollar",
    "JOD": "Jordanian dinar",
    "JPY": "Japanese yen",
    "KES": "Kenyan shilling",
    "KGS": "Kyrgyzstani som",
    "KHR": "Cambodian riel",
    "KMF": "Comoro franc",
    "KPW": "North Korean won",
    "KRW": "South Korean won",
    "KWD": "Kuwaiti dinar",
    "KYD": "Cayman Islands dollar",
    "KZT": "Kazakhstani tenge",
    "LAK": "Lao kip",
    "LBP": "Lebanese pound",
    "LKR": "Sri Lankan rupee",
    "LRD": "Liberian dollar",
    "LSL": "Lesotho loti",
    "LYD": "Libyan dinar",
    "MAD": "Moroccan dirham",
    "MDL": "Moldovan leu",
    "MGA": "Malagasy ariary",
    "MKD": "Macedonian denar",
    "MMK": "Myanmar kyat",
    "MNT": "Mongolian tögrög",
    "MOP": "Macanese pataca",
    "MRO": "Mauritanian ouguiya",
    "MUR": "Mauritian rupee",
    "MVR": "Maldivian rufiyaa",
    "MWK": "Malawian kwacha",
    "MXN": "Mexican peso",
    "MXV": "Mexican Unidad de Inversion",
    "MYR": "Malaysian ringgit",
    "MZN": "Mozambican metical",
    "NAD": "Namibian dollar",
    "NGN": "Nigerian naira",
    "NIO": "Nicaraguan córdoba",
    "NOK": "Norwegian krone",
    "NPR": "Nepalese rupee",
    "NZD": "New Zealand dollar",
    "OMR": "Omani rial",
    "PAB": "Panamanian balboa",
    "PEN": "Peruvian Sol",
    "PGK": "Papua New Guinean kina",
    "PHP": "Philippine peso",
    "PKR": "Pakistani rupee",
    "PLN": "Polish złoty",
    "PYG": "Paraguayan guaraní",
    "QAR": "Qatari riyal",
    "RON": "Romanian leu",
    "RSD": "Serbian dinar",
    "RUB": "Russian ruble",
    "RWF": "Rwandan franc",
    "SAR": "Saudi riyal",
    "SBD": "Solomon Islands dollar",
    "SCR": "Seychelles rupee",
    "SDG": "Sudanese pound",
    "SEK": "Swedish krona",
    "SGD": "Singapore dollar",
    "SHP": "Saint Helena pound",
    "SLL": "Sierra Leonean leone",
    "SOS": "Somali shilling",
    "SRD": "Surinamese dollar",
    "SSP": "South Sudanese pound",
    "STD": "São Tomé and Príncipe dobra",
    "SVC": "Salvadoran colón",
    "SYP": "Syrian pound",
    "SZL": "Swazi lilangeni",
    "THB": "Thai baht",
    "TJS": "Tajikistani somoni",
    "TMT": "Turkmenistani manat",
    "TND": "Tunisian dinar",
    "TOP": "Tongan paʻanga",
    "TRY": "Turkish lira",
    "TTD": "Trinidad and Tobago dollar",
    "TWD": "New Taiwan dollar",
    "TZS": "Tanzanian shilling",
    "UAH": "Ukrainian hryvnia",
    "UGX": "Ugandan shilling",
    "USD": "United States dollar",
    "UYI": "Uruguay Peso en Unidades Indexadas",
    "UYU": "Uruguayan peso",
    "UZS": "Uzbekistan som",
    "VEF": "Venezuelan bolívar",
    "VND": "Vietnamese đồng",
    "VUV": "Vanuatu vatu",
    "WST": "Samoan tala",
    "XAF": "Central African CFA franc",
    "XCD": "East Caribbean dollar",
    "XOF": "West African CFA franc",
    "XPF": "CFP franc",
    "XXX": "No currency",
    "YER": "Yemeni rial",
    "ZAR": "South African rand",
    "ZMW": "Zambian kwacha",
    "ZWL": "Zimbabwean dollar"
}

@abdo-host
Copy link

abdo-host commented Aug 18, 2019

Thank @VMBindraban you :)

@sharik709
Copy link

sharik709 commented Oct 8, 2019

For those who want it reversed.

$arr = [
    'Albania Lek' => 'ALL',
    'Afghanistan Afghani' => 'AFN',
    'Argentina Peso' => 'ARS',
    'Aruba Guilder' => 'AWG',
    'Australia Dollar' => 'AUD',
    'Azerbaijan New Manat' => 'AZN',
    'Bahamas Dollar' => 'BSD',
    'Barbados Dollar' => 'BBD',
    'Bangladeshi taka' => 'BDT',
    'Belarus Ruble' => 'BYR',
    'Belize Dollar' => 'BZD',
    'Bermuda Dollar' => 'BMD',
    'Bolivia Boliviano' => 'BOB',
    'Bosnia and Herzegovina Convertible Marka' => 'BAM',
    'Botswana Pula' => 'BWP',
    'Bulgaria Lev' => 'BGN',
    'Brazil Real' => 'BRL',
    'Brunei Darussalam Dollar' => 'BND',
    'Cambodia Riel' => 'KHR',
    'Canada Dollar' => 'CAD',
    'Cayman Islands Dollar' => 'KYD',
    'Chile Peso' => 'CLP',
    'China Yuan Renminbi' => 'CNY',
    'Colombia Peso' => 'COP',
    'Costa Rica Colon' => 'CRC',
    'Croatia Kuna' => 'HRK',
    'Cuba Peso' => 'CUP',
    'Czech Republic Koruna' => 'CZK',
    'Denmark Krone' => 'DKK',
    'Dominican Republic Peso' => 'DOP',
    'East Caribbean Dollar' => 'XCD',
    'Egypt Pound' => 'EGP',
    'El Salvador Colon' => 'SVC',
    'Estonia Kroon' => 'EEK',
    'Euro Member Countries' => 'EUR',
    'Falkland Islands (Malvinas) Pound' => 'FKP',
    'Fiji Dollar' => 'FJD',
    'Ghana Cedis' => 'GHC',
    'Gibraltar Pound' => 'GIP',
    'Guatemala Quetzal' => 'GTQ',
    'Guernsey Pound' => 'GGP',
    'Guyana Dollar' => 'GYD',
    'Honduras Lempira' => 'HNL',
    'Hong Kong Dollar' => 'HKD',
    'Hungary Forint' => 'HUF',
    'Iceland Krona' => 'ISK',
    'India Rupee' => 'INR',
    'Indonesia Rupiah' => 'IDR',
    'Iran Rial' => 'IRR',
    'Isle of Man Pound' => 'IMP',
    'Israel Shekel' => 'ILS',
    'Jamaica Dollar' => 'JMD',
    'Japan Yen' => 'JPY',
    'Jersey Pound' => 'JEP',
    'Kazakhstan Tenge' => 'KZT',
    'Korea (North) Won' => 'KPW',
    'Korea (South) Won' => 'KRW',
    'Kyrgyzstan Som' => 'KGS',
    'Laos Kip' => 'LAK',
    'Latvia Lat' => 'LVL',
    'Lebanon Pound' => 'LBP',
    'Liberia Dollar' => 'LRD',
    'Lithuania Litas' => 'LTL',
    'Macedonia Denar' => 'MKD',
    'Malaysia Ringgit' => 'MYR',
    'Mauritius Rupee' => 'MUR',
    'Mexico Peso' => 'MXN',
    'Mongolia Tughrik' => 'MNT',
    'Mozambique Metical' => 'MZN',
    'Namibia Dollar' => 'NAD',
    'Nepal Rupee' => 'NPR',
    'Netherlands Antilles Guilder' => 'ANG',
    'New Zealand Dollar' => 'NZD',
    'Nicaragua Cordoba' => 'NIO',
    'Nigeria Naira' => 'NGN',
    'Norway Krone' => 'NOK',
    'Oman Rial' => 'OMR',
    'Pakistan Rupee' => 'PKR',
    'Panama Balboa' => 'PAB',
    'Paraguay Guarani' => 'PYG',
    'Peru Nuevo Sol' => 'PEN',
    'Philippines Peso' => 'PHP',
    'Poland Zloty' => 'PLN',
    'Qatar Riyal' => 'QAR',
    'Romania New Leu' => 'RON',
    'Russia Ruble' => 'RUB',
    'Saint Helena Pound' => 'SHP',
    'Saudi Arabia Riyal' => 'SAR',
    'Serbia Dinar' => 'RSD',
    'Seychelles Rupee' => 'SCR',
    'Singapore Dollar' => 'SGD',
    'Solomon Islands Dollar' => 'SBD',
    'Somalia Shilling' => 'SOS',
    'South Africa Rand' => 'ZAR',
    'Sri Lanka Rupee' => 'LKR',
    'Sweden Krona' => 'SEK',
    'Switzerland Franc' => 'CHF',
    'Suriname Dollar' => 'SRD',
    'Syria Pound' => 'SYP',
    'Taiwan New Dollar' => 'TWD',
    'Thailand Baht' => 'THB',
    'Trinidad and Tobago Dollar' => 'TTD',
    'Turkey Lira' => 'TRL',
    'Tuvalu Dollar' => 'TVD',
    'Ukraine Hryvna' => 'UAH',
    'United Kingdom Pound' => 'GBP',
    'United States Dollar' => 'USD',
    'Uruguay Peso' => 'UYU',
    'Uzbekistan Som' => 'UZS',
    'Venezuela Bolivar' => 'VEF',
    'Viet Nam Dong' => 'VND',
    'Yemen Rial' => 'YER',
    'Zimbabwe Dollar' => 'ZWD',
];

@cosmin-seviciu
Copy link

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":"" } ]

@devmoosun
Copy link

devmoosun commented Oct 14, 2020

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$'),

);

@alhdo
Copy link

alhdo commented Nov 6, 2020

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"}]

@AlbertZawadzki
Copy link

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)

@devmoosun
Copy link

array('code'=> 'PLN',
'countryname'=> 'Poland',
'name'=> 'Polish złoty',
'symbol'=> 'zł'),

@simon-zk
Copy link

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')

@chimakalu
Copy link

thank you for the array @SimonKane, needed to use it in JS and your format was just what I needed.

@rajaishtiaq6
Copy link

rajaishtiaq6 commented Nov 15, 2022

may be useful who need a currency symbol

<?php
// function get currency symbol by currency code
function get_currency_symbol($currency = '')
{
    $symbols = array(
        'AED' => '&#1583;.&#1573;', // ?
        'AFN' => '&#65;&#102;',
        'ALL' => '&#76;&#101;&#107;',
        'AMD' => '&#1423;',
        'ANG' => '&#402;',
        'AOA' => '&#75;&#122;', // ?
        'ARS' => '&#36;',
        'AUD' => '&#36;',
        'AWG' => '&#402;',
        'AZN' => '&#1084;&#1072;&#1085;',
        'BAM' => '&#75;&#77;',
        'BBD' => '&#36;',
        'BDT' => '&#2547;', // ?
        'BGN' => '&#1083;&#1074;',
        'BHD' => '.&#1583;.&#1576;', // ?
        'BIF' => '&#70;&#66;&#117;', // ?
        'BMD' => '&#36;',
        'BND' => '&#36;',
        'BOB' => '&#36;&#98;',
        'BRL' => '&#82;&#36;',
        'BSD' => '&#36;',
        'BTC' => '&#3647;',
        'BTN' => '&#78;&#117;&#46;', // ?
        'BWP' => '&#80;',
        'BYR' => '&#112;&#46;',
        'BYN' => '&#66;&#114;',
        'BZD' => '&#66;&#90;&#36;',
        'CAD' => '&#36;',
        'CDF' => '&#70;&#67;',
        'CHF' => '&#67;&#72;&#70;',
        'CLF' => '', // ?
        'CLP' => '&#36;',
        'CNY' => '&#165;',
        'COP' => '&#36;',
        'CRC' => '&#8353;',
        'CUC' => '&#8396;',
        'CUP' => '&#8396;',
        'CVE' => '&#36;', // ?
        'CZK' => '&#75;&#269;',
        'DJF' => '&#70;&#100;&#106;', // ?
        'DKK' => '&#107;&#114;',
        'DOP' => '&#82;&#68;&#36;',
        'DZD' => '&#1583;&#1580;', // ?
        'EGP' => '&#163;',
        'ERN' => '&#78;&#102;&#107;', // ?
        'ETB' => '&#66;&#114;',
        'EUR' => '&#8364;',
        'FJD' => '&#36;',
        'FKP' => '&#163;',
        'GBP' => '&#163;',
        'GEL' => '&#4314;', // ?
        'GGP' => '&#163;',
        'GHS' => '&#162;',
        'GIP' => '&#163;',
        'GMD' => '&#68;', // ?
        'GNF' => '&#70;&#71;', // ?
        'GTQ' => '&#81;',
        'GYD' => '&#36;',
        'HKD' => '&#36;',
        'HNL' => '&#76;',
        'HRK' => '&#107;&#110;',
        'HTG' => '&#71;', // ?
        'PKE' => '&#36;',
        'HUF' => '&#70;&#116;',
        'IDR' => '&#82;&#112;',
        'ILS' => '&#8362;',
        'IMP' => '&#163;',
        'INR' => '&#8377;',
        'IQD' => '&#1593;.&#1583;', // ?
        'IRR' => '&#65020;',
        'IRT' => '&#65020;',
        'ISK' => '&#107;&#114;',
        'JEP' => '&#163;',
        'JMD' => '&#74;&#36;',
        'JOD' => '&#74;&#68;', // ?
        'JPY' => '&#165;',
        'KES' => '&#75;&#83;&#104;', // ?
        'KGS' => '&#1083;&#1074;',
        'KHR' => '&#6107;',
        'KMF' => '&#67;&#70;', // ?
        'KPW' => '&#8361;',
        'KRW' => '&#8361;',
        'KWD' => '&#1583;.&#1603;', // ?
        'KYD' => '&#36;',
        'KZT' => '&#1083;&#1074;',
        'LAK' => '&#8365;',
        'LBP' => '&#163;',
        'LKR' => '&#8360;',
        'LRD' => '&#36;',
        'LSL' => '&#76;', // ?
        'LTL' => '&#76;&#116;',
        'LVL' => '&#76;&#115;',
        'LYD' => '&#1604;.&#1583;', // ?
        'MAD' => '&#1583;.&#1605;.', //?
        'MDL' => '&#76;',
        'MGA' => '&#65;&#114;', // ?
        'MKD' => '&#1076;&#1077;&#1085;',
        'MMK' => '&#75;',
        'MNT' => '&#8366;',
        'MOP' => '&#77;&#79;&#80;&#36;', // ?
        'MRO' => '&#85;&#77;', // ?
        'MUR' => '&#8360;', // ?
        'MVR' => '.&#1923;', // ?
        'MWK' => '&#77;&#75;',
        'MXN' => '&#36;',
        'MYR' => '&#82;&#77;',
        'MZN' => '&#77;&#84;',
        'NAD' => '&#36;',
        'NGN' => '&#8358;',
        'NIO' => '&#67;&#36;',
        'NOK' => '&#107;&#114;',
        'NPR' => '&#8360;',
        'NZD' => '&#36;',
        'OMR' => '&#65020;',
        'PAB' => '&#66;&#47;&#46;',
        'PEN' => '&#83;&#47;&#46;',
        'PGK' => '&#75;', // ?
        'PHP' => '&#8369;',
        'PKR' => '&#8360;',
        'PLN' => '&#122;&#322;',
        'PYG' => '&#71;&#115;',
        'QAR' => '&#65020;',
        'RON' => '&#108;&#101;&#105;',
        'RSD' => '&#1044;&#1080;&#1085;&#46;',
        'RUB' => '&#1088;&#1091;&#1073;',
        'RWF' => '&#1585;.&#1587;',
        'SAR' => '&#65020;',
        'SBD' => '&#36;',
        'SCR' => '&#8360;',
        'SDG' => '&#163;', // ?
        'SEK' => '&#107;&#114;',
        'SGD' => '&#36;',
        'SHP' => '&#163;',
        'SLL' => '&#76;&#101;', // ?
        'SOS' => '&#83;',
        'SPL' => '&#163;',
        'SRD' => '&#36;',
        'STD' => '&#68;&#98;', // ?
        'SVC' => '&#36;',
        'SYP' => '&#163;',
        'SZL' => '&#76;', // ?
        'THB' => '&#3647;',
        'TJS' => '&#84;&#74;&#83;', // ? TJS (guess)
        'TMT' => '&#109;',
        'TND' => '&#1583;.&#1578;',
        'TOP' => '&#84;&#36;',
        'TRY' => '&#8356;', // New Turkey Lira (old symbol used)
        'TTD' => '&#36;',
        'TVD' => '&#36;',
        'TWD' => '&#78;&#84;&#36;',
        'TZS' => '',
        'UAH' => '&#8372;',
        'UGX' => '&#85;&#83;&#104;',
        'USD' => '&#36;',
        'UYU' => '&#36;&#85;',
        'UZS' => '&#1083;&#1074;',
        'VEF' => '&#66;&#115;',
        'VND' => '&#8363;',
        'VUV' => '&#86;&#84;',
        'WST' => '&#87;&#83;&#36;',
        'XAF' => '&#70;&#67;&#70;&#65;',
        'XCD' => '&#36;',
        'XDR' => '',
        'XOF' => '',
        'XPF' => '&#70;',
        'ZAR' => '&#82;',
        'ZMW' => '&#90;&#75;',
    );
    if (isset($symbols[$currency])) {
        return $symbols[$currency];
    }
    return $currency;
}

echo get_currency_symbol('USD');

?>

Copy link

ghost commented Dec 18, 2022

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/

@devmoosun
Copy link

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.

@iamprincesly
Copy link

iamprincesly commented Jan 27, 2024

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' => '&#1547;'],
            ['code' => 'ARS', 'countries' => ['Argentina'], 'name' => 'Argentine Peso', 'symbol' => '&#36;'],
            ['code' => 'AWG', 'countries' => ['Aruba'], 'name' => 'Aruban florin', 'symbol' => '&#402;'],
            ['code' => 'AUD', 'countries' => ['Australia'], 'name' => 'Australian Dollar', 'symbol' => '&#65;&#36;'],
            ['code' => 'AZN', 'countries' => ['Azerbaijan'], 'name' => 'Azerbaijani Manat', 'symbol' => '&#8380;'],
            ['code' => 'BSD', 'countries' => ['The Bahamas'], 'name' => 'Bahamas Dollar', 'symbol' => '&#66;&#36;'],
            ['code' => 'BBD', 'countries' => ['Barbados'], 'name' => 'Barbados Dollar', 'symbol' => '&#66;&#100;&#115;&#36;'],
            ['code' => 'BDT', 'countries' => ['People\'s Republic of Bangladesh'], 'name' => 'Bangladeshi taka', 'symbol' => '&#2547;'],
            ['code' => 'BYN', 'countries' => ['Belarus'], 'name' => 'Belarus Ruble', 'symbol' => '&#66;&#114;'],
            ['code' => 'BZD', 'countries' => ['Belize'], 'name' => 'Belize Dollar', 'symbol' => '&#66;&#90;&#36;'],
            ['code' => 'BMD', 'countries' => ['British Overseas Territory of Bermuda'], 'name' => 'Bermudian Dollar', 'symbol' => '&#66;&#68;&#36;'],
            ['code' => 'BOP', 'countries' => ['Bolivia'], 'name' => 'Boliviano', 'symbol' => '&#66;&#115;'],
            ['code' => 'BAM', 'countries' => ['Bosnia', 'Herzegovina'], 'name' => 'Bosnia-Herzegovina Convertible Marka', 'symbol' => '&#75;&#77;'],
            ['code' => 'BWP', 'countries' => ['Botswana'], 'name' => 'Botswana pula', 'symbol' => '&#80;'],
            ['code' => 'BGN', 'countries' => ['Bulgaria'], 'name' => 'Bulgarian lev', 'symbol' => '&#1083;&#1074;'],
            ['code' => 'BRL', 'countries' => ['Brazil'], 'name' => 'Brazilian real', 'symbol' => '&#82;&#36;'],
            ['code' => 'BND', 'countries' => ['Sultanate of Brunei'], 'name' => 'Brunei dollar', 'symbol' => '&#66;&#36;'],
            ['code' => 'KHR', 'countries' => ['Cambodia'], 'name' => 'Cambodian riel', 'symbol' => '&#6107;'],
            ['code' => 'CAD', 'countries' => ['Canada'], 'name' => 'Canadian dollar', 'symbol' => '&#67;&#36;'],
            ['code' => 'KYD', 'countries' => ['Cayman Islands'], 'name' => 'Cayman Islands dollar', 'symbol' => '&#36;'],
            ['code' => 'CLP', 'countries' => ['Chile'], 'name' => 'Chilean peso', 'symbol' => '&#36;'],
            ['code' => 'CNY', 'countries' => ['China'], 'name' => 'Chinese Yuan Renminbi', 'symbol' => '&#165;'],
            ['code' => 'COP', 'countries' => ['Colombia'], 'name' => 'Colombian peso', 'symbol' => '&#36;'],
            ['code' => 'CRC', 'countries' => ['Costa Rica'], 'name' => 'Costa Rican colón', 'symbol' => '&#8353;'],
            ['code' => 'HRK', 'countries' => ['Croatia'], 'name' => 'Croatian kuna', 'symbol' => '&#107;&#110;'],
            ['code' => 'CUP', 'countries' => ['Cuba'], 'name' => 'Cuban peso', 'symbol' => '&#8369;'],
            ['code' => 'CZK', 'countries' => ['Czech Republic'], 'name' => 'Czech koruna', 'symbol' => '&#75;&#269;'],
            ['code' => 'DKK', 'countries' => ['Denmark', 'Greenland', 'The Faroe Islands'], 'name' => 'Danish krone', 'symbol' => '&#107;&#114;'],
            ['code' => 'DOP', 'countries' => ['Dominican Republic'], 'name' => 'Dominican peso', 'symbol' => '&#82;&#68;&#36;'],
            ['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'=> '&#36;'],
            ['code' => 'EGP', 'countries' => ['Egypt'], 'name' => 'Egyptian pound', 'symbol' => '&#163;'],
            ['code' => 'SVC', 'countries' => ['El Salvador'], 'name' => 'Salvadoran colón', 'symbol' => '&#36;'],
            ['code' => 'EEK', 'countries' => ['Estonia'], 'name' => 'Estonian kroon', 'symbol' => '&#75;&#114;'],
            ['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' => '&#8364;'],
            ['code' => 'FKP', 'countries' => ['Falkland Islands'], 'name' => 'Falkland Islands (Malvinas) Pound', 'symbol' => '&#70;&#75;&#163;'],
            ['code' => 'FJD', 'countries' => ['Fiji'], 'name' => 'Fijian dollar', 'symbol' => '&#70;&#74;&#36;'],
            ['code' => 'GHC', 'countries' => ['Ghana'], 'name' => 'Ghanaian cedi', 'symbol'=> '&#71;&#72;&#162;'],
            ['code' => 'GIP', 'countries' => ['Gibraltar'], 'name' => 'Gibraltar pound', 'symbol' => '&#163;'],
            ['code' => 'GTQ', 'countries' => ['Guatemala'], 'name' => 'Guatemalan quetzal', 'symbol' => '&#81;'],
            ['code' => 'GGP', 'countries' => ['Guernsey'], 'name' => 'Guernsey pound', 'symbol' => '&#81;'],
            ['code' => 'GYD', 'countries' => ['Guyana'], 'name' => 'Guyanese dollar', 'symbol' => '&#71;&#89;&#36;'],
            ['code' => 'HNL', 'countries' => ['Honduras'], 'name' => 'Honduran lempira', 'symbol' => '&#76;'],
            ['code' => 'HKD', 'countries' => ['Hong Kong'], 'name' => 'Hong Kong dollar', 'symbol' => '&#72;&#75;&#36;'],
            ['code' => 'HUF', 'countries' => ['Hungary'], 'name' => 'Hungarian forint', 'symbol' => '&#70;&#116;'],
            ['code' => 'ISK', 'countries' => ['Iceland'], 'name' => 'Icelandic króna', 'symbol' => '&#237;&#107;&#114;'],
            ['code' => 'INR', 'countries' => ['India'], 'name' => 'Indian rupee', 'symbol' => '&#8377;'],
            ['code' => 'IDR', 'countries' => ['Indonesia'], 'name' => 'Indonesian rupiah', 'symbol' => '&#82;&#112;'],
            ['code' => 'IRR', 'countries' => ['Iran'], 'name' => 'Iranian rial', 'symbol' => '&#65020;'],
            ['code' => 'IMP', 'countries' => ['Isle of Man'], 'name' => 'Manx pound', 'symbol' => '&#163;'],
            ['code' => 'ILS', 'countries' => ['Israel', 'Palestinian territories of the West Bank', 'The Gaza Strip'], 'name' => 'Israeli Shekel', 'symbol' => '&#8362;'],
            ['code' => 'JMD', 'countries' => ['Jamaica'], 'name' => 'Jamaican dollar', 'symbol' => '&#74;&#36;'],
            ['code' => 'JPY', 'countries' => ['Japan'], 'name' => 'Japanese yen', 'symbol' => '&#165;'],
            ['code' => 'JEP', 'countries' => ['Jersey'], 'name' => 'Jersey pound', 'symbol' => '&#163;'],
            ['code' => 'KZT', 'countries' => ['Kazakhstan'], 'name' => 'Kazakhstani tenge', 'symbol' => '&#8376;'],
            ['code' => 'KPW', 'countries' => ['North Korea'], 'name' => 'North Korean won', 'symbol' => '&#8361;'],
            ['code' => 'KPW', 'countries' => ['South Korea'], 'name' => 'South Korean won', 'symbol' => '&#8361;'],
            ['code' => 'KGS', 'countries' => ['Kyrgyz Republic'], 'name' => 'Kyrgyzstani som', 'symbol' => '&#1083;&#1074;'],
            ['code' => 'LAK', 'countries' => ['Laos'], 'name' => 'Lao kip', 'symbol' => '&#8365;'],
            ['code' => 'LAK', 'countries' => ['Laos'], 'name' => 'Latvian lats', 'symbol' => '&#8364;'],
            ['code' => 'LVL', 'countries' => ['Laos'], 'name' => 'Latvian lats', 'symbol' => '&#8364;'],
            ['code' => 'LBP', 'countries' => ['Lebanon'], 'name' => 'Lebanese pound', 'symbol' => '&#76;&#163;'],
            ['code' => 'LRD', 'countries' => ['Liberia'], 'name' => 'Liberian dollar', 'symbol' => '&#76;&#68;&#36;'],
            ['code' => 'LTL', 'countries' => ['Lithuania'], 'name' => 'Lithuanian litas', 'symbol' => '&#8364;'],
            ['code' => 'MKD', 'countries' => ['North Macedonia'], 'name' => 'Macedonian denar', 'symbol' => '&#1076;&#1077;&#1085;'],
            ['code' => 'MYR', 'countries' => ['Malaysia'], 'name' => 'Malaysian ringgit', 'symbol' => '&#82;&#77;'],
            ['code' => 'MUR', 'countries' => ['Mauritius'], 'name' => 'Mauritian rupee', 'symbol' => '&#82;&#115;'],
            ['code' => 'MXN', 'countries' => ['Mexico'], 'name' => 'Mexican peso', 'symbol' => '&#77;&#101;&#120;&#36;'],
            ['code' => 'MNT', 'countries' => ['Mongolia'], 'name' => 'Mongolian tögrög', 'symbol' => '&#8366;'],
            ['code' => 'MZN', 'countries' => ['Mozambique'], 'name' => 'Mozambican metical', 'symbol' => '&#77;&#84;'],
            ['code' => 'NAD', 'countries' => ['Namibia'], 'name' => 'Namibian dollar', 'symbol' => '&#78;&#36;'],
            ['code' => 'NPR', 'countries' => ['Federal Democratic Republic of Nepal'], 'name' => 'Nepalese rupee', 'symbol'=> '&#82;&#115;&#46;'],
            ['code' => 'ANG', 'countries' => ['Curaçao', 'Sint Maarten'], 'name' => 'Netherlands Antillean guilder', 'symbol' => '&#402;'],
            ['code' => 'NZD', 'countries' => ['New Zealand', 'The Cook Islands', 'Niue', 'The Ross Dependency', 'Tokelau', 'The Pitcairn Islands'], 'name' => 'New Zealand Dollar', 'symbol' => '&#36;'],
            ['code' => 'NIO', 'countries' => ['Nicaragua'], 'name' => 'Nicaraguan córdoba', 'symbol' => '&#67;&#36;'],
            ['code' => 'NGN', 'countries' => ['Nigeria'], 'name'=> 'Nigerian Naira', 'symbol' => '&#8358;'],
            ['code' => 'NOK', 'countries' => ['Norway and its dependent territories'], 'name' => 'Norwegian krone', 'symbol'=> '&#107;&#114;'],
            ['code' => 'OMR', 'countries' => ['Oman'], 'name' => 'Omani rial', 'symbol' => '&#65020;'],
            ['code' => 'PKR', 'countries' => ['Pakistan'], 'name' => 'Pakistani rupee', 'symbol' => '&#82;&#115;'],
            ['code' => 'PAB', 'countries' => ['Panama'], 'name' => 'Panamanian balboa', 'symbol' => '&#66;&#47;&#46;'],
            ['code' => 'PYG', 'countries' => ['Paraguay'], 'name' => 'Paraguayan Guaraní', 'symbol' => '&#8370;'],
            ['code' => 'PEN', 'countries' => ['Peru'], 'name' => 'Sol', 'symbol' => '&#83;&#47;&#46;'],
            ['code' => 'PHP', 'countries' => ['Philippines'], 'name' => 'Philippine peso', 'symbol' => '&#8369;'],
            ['code' => 'PLN', 'countries' => ['Poland'], 'name' => 'Polish złoty', 'symbol' => '&#122;&#322;'],
            ['code' => 'QAR', 'countries' => ['State of Qatar'], 'name' => 'Qatari Riyal', 'symbol' => '&#65020;'],
            ['code' => 'RON', 'countries' => ['Romania'], 'name' => 'Romanian leu (Leu românesc)', 'symbol' => '&#76;'],
            ['code' => 'RUB', 'countries' => ['Russian Federation', 'Abkhazia and South Ossetia', 'Donetsk and Luhansk'], 'name' => 'Russian ruble', 'symbol' => '&#8381;'],
            ['code' => 'SHP', 'countries' => ['Saint Helena', 'Ascension', 'Tristan da Cunha'], 'name' => 'Saint Helena pound', 'symbol' => '&#163;'],
            ['code' => 'SAR', 'countries' => ['Saudi Arabia'], 'name' => 'Saudi riyal', 'symbol' => '&#65020;'],
            ['code' => 'RSD', 'countries' => ['Serbia'], 'name' => 'Serbian dinar', 'symbol' => '&#100;&#105;&#110;'],
            ['code' => 'SCR', 'countries' => ['Seychelles'], 'name' => 'Seychellois rupee', 'symbol' => '&#82;&#115;'],
            ['code' => 'SGD', 'countries' => ['Singapore'], 'name' => 'Singapore dollar', 'symbol' => '&#83;&#36;'],
            ['code' => 'SBD', 'countries' => ['Solomon Islands'], 'name' => 'Solomon Islands dollar', 'symbol' => '&#83;&#73;&#36;'],
            ['code' => 'SOS', 'countries' => ['Somalia'], 'name' => 'Somali shilling', 'symbol' => '&#83;&#104;&#46;&#83;&#111;'],
            ['code' => 'ZAR', 'countries' => ['South Africa'], 'name' => 'South African rand', 'symbol' => '&#82;'],
            ['code' => 'LKR', 'countries' => ['Sri Lanka'], 'name' => 'Sri Lankan rupee', 'symbol' => '&#82;&#115;'],
            ['code' => 'SEK', 'countries' => ['Sweden'], 'name' => 'Swedish krona', 'symbol' => '&#107;&#114;'],
            ['code' => 'CHF', 'countries' => ['Switzerland'], 'name' => 'Swiss franc', 'symbol' => '&#67;&#72;&#102;'],
            ['code' => 'SRD', 'countries' => ['Suriname'], 'name' => 'Suriname Dollar', 'symbol' => '&#83;&#114;&#36;'],
            ['code' => 'SYP', 'countries' => ['Syria'], 'name' => 'Syrian pound', 'symbol' => '&#163;&#83;'],
            ['code' => 'TWD', 'countries' => ['Taiwan'], 'name' => 'New Taiwan dollar', 'symbol' => '&#78;&#84;&#36;'],
            ['code' => 'THB', 'countries' => ['Thailand'], 'name' => 'Thai baht', 'symbol' => '&#3647;'],
            ['code' => 'TTD', 'countries' => ['Trinidad', 'Tobago'], 'name' => 'Trinidad and Tobago dollar', 'symbol' => '&#84;&#84;&#36;'],
            ['code' => 'TRY', 'countries' => ['Turkey', 'Turkish Republic of Northern Cyprus'], 'name' => 'Turkey Lira', 'symbol' => '&#8378;'],
            ['code' => 'TVD', 'countries' => ['Tuvalu'], 'name' => 'Tuvaluan dollar', 'symbol' => '&#84;&#86;&#36;'],
            ['code' => 'UAH', 'countries' => ['Ukraine'], 'name' => 'Ukrainian hryvnia', 'symbol' => '&#8372;'],
            ['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' => '&#163;'],
            ['code' => 'UGX', 'countries' => ['Uganda'], 'name' => 'Ugandan shilling', 'symbol' => '&#85;&#83;&#104;'],
            ['code' => 'USD', 'countries' => ['United States'], 'name' => 'United States dollar', 'symbol' => '&#36;'],
            ['code' => 'UYU', 'countries' => ['Uruguayan'], 'name' => 'Peso Uruguayolar', 'symbol' => '&#36;&#85;'],
            ['code' => 'UZS', 'countries' => ['Uzbekistan'], 'name' => 'Uzbekistani soʻm', 'symbol' => '&#1083;&#1074;'],
            ['code' => 'VEF', 'countries' => ['Venezuela'], 'name' => 'Venezuelan bolívar', 'symbol' => '&#66;&#115;'],
            ['code' => 'VND', 'countries' => ['Vietnam'], 'name' => 'Vietnamese dong (Đồng)', 'symbol' => '&#8363;'],
            ['code' => 'VND', 'countries' => ['Yemen'], 'name' => 'Yemeni rial', 'symbol' => '&#65020;'],
            ['code' => 'ZWD', 'countries' => ['Zimbabwe'], 'name' => 'Zimbabwean dollar', 'symbol' => '&#90;&#36;'],
        ];

        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;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment