function currency_api_get_symbol in Currency 7
Same name and namespace in other branches
- 6 currency_api/currency_api.module \currency_api_get_symbol()
Returns the symbol for a currency code.
Parameters
string $code: Currency code (3-letter ISO).
Return value
$result Returns the symbol for the provided currency code or NULL if not found.
File
- currency_api/
currency_api.module, line 313 - This module provides an API for currency conversion.
Code
function currency_api_get_symbol($code) {
$symbols = currency_api_get_symbols();
return isset($symbols[$code]) ? $symbols[$code] : NULL;
}