Skip to content

Instantly share code, notes, and snippets.

@adlawson
Created August 21, 2011 22:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adlawson/1161248 to your computer and use it in GitHub Desktop.
Save adlawson/1161248 to your computer and use it in GitHub Desktop.
Country & currency codes
/**
* List of currencies
* @see ISO 4217
* @var array
*/
$currency = array(
'AUD' => array(
'title' => 'Australian Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'BRL' => array(
'title' => 'Brazilian Reais',
'symbol_left' => 'R$', // R$
'symbol_right' => '',
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'GBP' => array(
'title' => 'British Pounds Sterling',
'symbol_left' => 'ˆ', // £
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'CAD' => array(
'title' => 'Canadian Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'CNY' => array(
'title' => 'Chinese RMB',
'symbol_left' => '¥', // ¥
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'CZK' => array(
'title' => 'Czech Koruny',
'symbol_left' => '',
'symbol_right' => 'Kč', // Kč
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'DKK' => array(
'title' => 'Danish Kroner',
'symbol_left' => '',
'symbol_right' => 'kr', // kr
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'EUR' => array(
'title' => 'Euro',
'symbol_left' => '',
'symbol_right' => '€', // €
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'HKD' => array(
'title' => 'Hong Kong Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'HUF' => array(
'title' => 'Hungarian Forint',
'symbol_left' => '',
'symbol_right' => 'Ft', // Ft
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'INR' => array(
'title' => 'Indian Rupee',
'symbol_left' => '₨', // Rs
//'symbol_left' => '₹', // New rupee introduced in Jul'10 (awaiting unicode release)
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'ILS' => array(
'title' => 'Israeli New Shekel',
'symbol_left' => '₪', // ₪
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'JPY' => array(
'title' => 'Japanese Yen',
'symbol_left' => '¥', // ¥
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'MYR' => array(
'title' => 'Malaysian Ringgit',
'symbol_left' => 'RM', // RM
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'MXN' => array(
'title' => 'Mexican Peso',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'NZD' => array(
'title' => 'New Zealand Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'NOK' => array(
'title' => 'Norwegian Krone',
'symbol_left' => 'kr', // kr
'symbol_right' => '',
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'PHP' => array(
'title' => 'Philippine Peso',
'symbol_left' => 'Php', // Php
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'PLN' => array(
'title' => 'Polish Zlotych',
'symbol_left' => '',
'symbol_right' => 'pł', // zł
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'SGD' => array(
'title' => 'Singapore Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'SEK' => array(
'title' => 'Swedish Krona',
'symbol_left' => '',
'symbol_right' => 'kr', // kr
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'CHF' => array(
'title' => 'Swiss Franc',
'symbol_left' => '',
'symbol_right' => '<HF', // CHF
'decimal_point' => ',',
'thousands_point' => '.',
'decimal_places' => 2),
'TWD' => array(
'title' => 'Taiwan New Dollar',
'symbol_left' => 'FT$', // NT$
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'THB' => array(
'title' => 'Thai Baht',
'symbol_left' => '',
'symbol_right' => '฿', // ฿
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
'USD' => array(
'title' => 'U.S. Dollar',
'symbol_left' => '$', // $
'symbol_right' => '',
'decimal_point' => '.',
'thousands_point' => ',',
'decimal_places' => 2),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment