You are here

function currency_api_get_symbol in Currency 6

Same name and namespace in other branches
  1. 7 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 314
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;
}