PHP Array Of All Currency Names And Code

All currency names and code list in PHP array

Currency name and code in PHP array

#Currency NameCodeSymbolSelect
Selected 164
Change array object key name | Move columns (for table)
Select array type:
PHP
<?php
// count 164
$currency_list = array(
    "AFA" => "Afghan Afghani",
    "ALL" => "Albanian Lek",
    "DZD" => "Algerian Dinar",
    "AOA" => "Angolan Kwanza",
    "ARS" => "Argentine Peso",
    "AMD" => "Armenian Dram",
    "AWG" => "Aruban Florin",
    "AUD" => "Australian Dollar",
    "AZN" => "Azerbaijani Manat",
    "BSD" => "Bahamian Dollar",
    "BHD" => "Bahraini Dinar",
    "BDT" => "Bangladeshi Taka",
    "BBD" => "Barbadian Dollar",
    "BYR" => "Belarusian Ruble",
    "BEF" => "Belgian Franc",
    "BZD" => "Belize Dollar",
    "BMD" => "Bermudan Dollar",
    "BTN" => "Bhutanese Ngultrum",
    "BTC" => "Bitcoin",
    "BOB" => "Bolivian Boliviano",
    "BAM" => "Bosnia",
    "BWP" => "Botswanan Pula",
    "BRL" => "Brazilian Real",
    "GBP" => "British Pound Sterling",
    "BND" => "Brunei Dollar",
    "BGN" => "Bulgarian Lev",
    "BIF" => "Burundian Franc",
    "KHR" => "Cambodian Riel",
    "CAD" => "Canadian Dollar",
    "CVE" => "Cape Verdean Escudo",
    "KYD" => "Cayman Islands Dollar",
    "XOF" => "CFA Franc BCEAO",
    "XAF" => "CFA Franc BEAC",
    "XPF" => "CFP Franc",
    "CLP" => "Chilean Peso",
    "CNY" => "Chinese Yuan",
    "COP" => "Colombian Peso",
    "KMF" => "Comorian Franc",
    "CDF" => "Congolese Franc",
    "CRC" => "Costa Rican Colón",
    "HRK" => "Croatian Kuna",
    "CUC" => "Cuban Convertible Peso",
    "CZK" => "Czech Republic Koruna",
    "DKK" => "Danish Krone",
    "DJF" => "Djiboutian Franc",
    "DOP" => "Dominican Peso",
    "XCD" => "East Caribbean Dollar",
    "EGP" => "Egyptian Pound",
    "ERN" => "Eritrean Nakfa",
    "EEK" => "Estonian Kroon",
    "ETB" => "Ethiopian Birr",
    "EUR" => "Euro",
    "FKP" => "Falkland Islands Pound",
    "FJD" => "Fijian Dollar",
    "GMD" => "Gambian Dalasi",
    "GEL" => "Georgian Lari",
    "DEM" => "German Mark",
    "GHS" => "Ghanaian Cedi",
    "GIP" => "Gibraltar Pound",
    "GRD" => "Greek Drachma",
    "GTQ" => "Guatemalan Quetzal",
    "GNF" => "Guinean Franc",
    "GYD" => "Guyanaese Dollar",
    "HTG" => "Haitian Gourde",
    "HNL" => "Honduran Lempira",
    "HKD" => "Hong Kong Dollar",
    "HUF" => "Hungarian Forint",
    "ISK" => "Icelandic Króna",
    "INR" => "Indian Rupee",
    "IDR" => "Indonesian Rupiah",
    "IRR" => "Iranian Rial",
    "IQD" => "Iraqi Dinar",
    "ILS" => "Israeli New Sheqel",
    "ITL" => "Italian Lira",
    "JMD" => "Jamaican Dollar",
    "JPY" => "Japanese Yen",
    "JOD" => "Jordanian Dinar",
    "KZT" => "Kazakhstani Tenge",
    "KES" => "Kenyan Shilling",
    "KWD" => "Kuwaiti Dinar",
    "KGS" => "Kyrgystani Som",
    "LAK" => "Laotian Kip",
    "LVL" => "Latvian Lats",
    "LBP" => "Lebanese Pound",
    "LSL" => "Lesotho Loti",
    "LRD" => "Liberian Dollar",
    "LYD" => "Libyan Dinar",
    "LTL" => "Lithuanian Litas",
    "MOP" => "Macanese Pataca",
    "MKD" => "Macedonian Denar",
    "MGA" => "Malagasy Ariary",
    "MWK" => "Malawian Kwacha",
    "MYR" => "Malaysian Ringgit",
    "MVR" => "Maldivian Rufiyaa",
    "MRO" => "Mauritanian Ouguiya",
    "MUR" => "Mauritian Rupee",
    "MXN" => "Mexican Peso",
    "MDL" => "Moldovan Leu",
    "MNT" => "Mongolian Tugrik",
    "MAD" => "Moroccan Dirham",
    "MZM" => "Mozambican Metical",
    "MMK" => "Myanmar Kyat",
    "NAD" => "Namibian Dollar",
    "NPR" => "Nepalese Rupee",
    "ANG" => "Netherlands Antillean Guilder",
    "TWD" => "New Taiwan Dollar",
    "NZD" => "New Zealand Dollar",
    "NIO" => "Nicaraguan Córdoba",
    "NGN" => "Nigerian Naira",
    "KPW" => "North Korean Won",
    "NOK" => "Norwegian Krone",
    "OMR" => "Omani Rial",
    "PKR" => "Pakistani Rupee",
    "PAB" => "Panamanian Balboa",
    "PGK" => "Papua New Guinean Kina",
    "PYG" => "Paraguayan Guarani",
    "PEN" => "Peruvian Nuevo Sol",
    "PHP" => "Philippine Peso",
    "PLN" => "Polish Zloty",
    "QAR" => "Qatari Rial",
    "RON" => "Romanian Leu",
    "RUB" => "Russian Ruble",
    "RWF" => "Rwandan Franc",
    "SVC" => "Salvadoran Colón",
    "WST" => "Samoan Tala",
    "SAR" => "Saudi Riyal",
    "RSD" => "Serbian Dinar",
    "SCR" => "Seychellois Rupee",
    "SLL" => "Sierra Leonean Leone",
    "SGD" => "Singapore Dollar",
    "SKK" => "Slovak Koruna",
    "SBD" => "Solomon Islands Dollar",
    "SOS" => "Somali Shilling",
    "ZAR" => "South African Rand",
    "KRW" => "South Korean Won",
    "XDR" => "Special Drawing Rights",
    "LKR" => "Sri Lankan Rupee",
    "SHP" => "St. Helena Pound",
    "SDG" => "Sudanese Pound",
    "SRD" => "Surinamese Dollar",
    "SZL" => "Swazi Lilangeni",
    "SEK" => "Swedish Krona",
    "CHF" => "Swiss Franc",
    "SYP" => "Syrian Pound",
    "STD" => "São Tomé and Príncipe Dobra",
    "TJS" => "Tajikistani Somoni",
    "TZS" => "Tanzanian Shilling",
    "THB" => "Thai Baht",
    "TOP" => "Tongan pa'anga",
    "TTD" => "Trinidad & Tobago Dollar",
    "TND" => "Tunisian Dinar",
    "TRY" => "Turkish Lira",
    "TMT" => "Turkmenistani Manat",
    "UGX" => "Ugandan Shilling",
    "UAH" => "Ukrainian Hryvnia",
    "AED" => "United Arab Emirates Dirham",
    "UYU" => "Uruguayan Peso",
    "USD" => "US Dollar",
    "UZS" => "Uzbekistan Som",
    "VUV" => "Vanuatu Vatu",
    "VEF" => "Venezuelan BolÃvar",
    "VND" => "Vietnamese Dong",
    "YER" => "Yemeni Rial",
    "ZMK" => "Zambian Kwacha"
);
?>

Create a list of HTML drop-down currency using PHP currency array

This is a auto-generated code for drop-down list. It depends on the type of array you created.
Click on the download button below to download the entire code, including PHP array list.
PHP
<?php 
// include array
require ('./currency-array.php');

function currency_dropdown($user_currency_code='') {
    $option = "";
    $selected ='';
    foreach ($GLOBALS['currency_list'] as $key => $value) {
        $selected = ($key == $user_currency_code ? ' selected' : '');
        $option .= '<option value="'.$key.'"'.$selected.'>'.$value.'</option>'."\n";
    }
    return $option;
}
?>

<select id="currency" name="currency">
    <option>select currency</option>
    <?php 
    // user currency code for selected option
    $user_currency = 'en';
    echo currency_dropdown($user_currency);
    ?>
</select>

Create a Table of currency names using a PHP currency array.

This is a auto-generated code for HTML table. It depends on the type of array you created.
Click on the download button below to download the entire code, including the style and array list.
PHP
<?php 
// include array
require ('./currency-array.php');

function currency_table() {
    $table = '';
    foreach ($GLOBALS['currency_list'] as $key => $value) {
        $table .= '<tr>';
        $table .= '<td>'.$value.'</td>';
        $table .= '<td>'.$key.'</td>';
        $table .= '</tr>'."\n";
    }
    return $table;
}
?>

<table class="mytable">
    <thead>
        <tr>
            <th>name</th> <th>code</th>
        </tr>
    </thead>
    <tbody>
    <?php echo currency_table(); ?>
    </tbody>
</table>

List of currency code in PHP array

PHP
<?php 
$currency_code = array(
'AFA', 'ALL', 'DZD', 'AOA', 'ARS', 'AMD', 'AWG', 'AUD', 'AZN', 'BSD', 'BHD', 'BDT', 'BBD', 'BYR', 'BEF', 'BZD', 'BMD', 'BTN', 'BTC', 'BOB', 'BAM', 'BWP', 'BRL', 'GBP', 'BND', 'BGN', 'BIF', 'KHR', 'CAD', 'CVE', 'KYD', 'XOF', 'XAF', 'XPF', 'CLP', 'CNY', 'COP', 'KMF', 'CDF', 'CRC', 'HRK', 'CUC', 'CZK', 'DKK', 'DJF', 'DOP', 'XCD', 'EGP', 'ERN', 'EEK', 'ETB', 'EUR', 'FKP', 'FJD', 'GMD', 'GEL', 'DEM', 'GHS', 'GIP', 'GRD', 'GTQ', 'GNF', 'GYD', 'HTG', 'HNL', 'HKD', 'HUF', 'ISK', 'INR', 'IDR', 'IRR', 'IQD', 'ILS', 'ITL', 'JMD', 'JPY', 'JOD', 'KZT', 'KES', 'KWD', 'KGS', 'LAK', 'LVL', 'LBP', 'LSL', 'LRD', 'LYD', 'LTL', 'MOP', 'MKD', 'MGA', 'MWK', 'MYR', 'MVR', 'MRO', 'MUR', 'MXN', 'MDL', 'MNT', 'MAD', 'MZM', 'MMK', 'NAD', 'NPR', 'ANG', 'TWD', 'NZD', 'NIO', 'NGN', 'KPW', 'NOK', 'OMR', 'PKR', 'PAB', 'PGK', 'PYG', 'PEN', 'PHP', 'PLN', 'QAR', 'RON', 'RUB', 'RWF', 'SVC', 'WST', 'SAR', 'RSD', 'SCR', 'SLL', 'SGD', 'SKK', 'SBD', 'SOS', 'ZAR', 'KRW', 'XDR', 'LKR', 'SHP', 'SDG', 'SRD', 'SZL', 'SEK', 'CHF', 'SYP', 'STD', 'TJS', 'TZS', 'THB', 'TOP', 'TTD', 'TND', 'TRY', 'TMT', 'UGX', 'UAH', 'AED', 'UYU', 'USD', 'UZS', 'VUV', 'VEF', 'VND', 'YER', 'ZMK'
);
?>