Returns the list of all known currency symbols.
public static getCurrencyList ( ) : array | ||
return | array | An array mapping currency codes to their respective currency symbols and a description, eg, `array('USD' => array('$', 'US dollar'))`. |
public static function getCurrencyList() { return Site::getCurrencyList(); }
/** * Returns the list of currency symbols * @see getCurrencyList() * @return array( currencyId => currencySymbol ) */ public function getCurrencySymbols() { $currencies = Site::getCurrencyList(); return array_map(function ($a) { return $a[0]; }, $currencies); }