Bitrix Site Manager

CCurrency::GetCurrency

array
CCurrency::GetCurrency(
 string currency
);

The method GetCurrency returns an array of the language independent parameters of a currency by its identifier. The method is similar to CCurrency::GetByID except the fact that the GetCurrency result is cached. Therefore, the repeated calls with the same currency identifier within the same page does not incur extra queries to the database.

Parameters

Parameter Description
currency The currency identifier.

Return Values

Associated array with the following keys.

Key Description
CURRENCY The three character currency code.
AMOUNT_CNT The number of currency units used by default to define the rate of exchange (for example, if CYP 10 equal to USD 21.58, 10 is the number of currency units).
AMOUNT The default rate of exchange. (One of currencies within a site must equal to 1. Such currency is called a base currency. Other currencies are defined relative to the base currency.)
SORT Sort order.
DATE_UPDATE The date that the record was last modified.

See also

CCurrency::GetByID