Currencies
extends ResourceBundle
in package
Gives access to currency-related ICU data.
Tags
Table of Contents
- INDEX_FRACTION_DIGITS = 0
- INDEX_NAME = 1
- INDEX_ROUNDING_INCREMENT = 1
- INDEX_SYMBOL = 0
- exists() : bool
- forNumericCode() : array<string|int, mixed>
- getCurrencyCodes() : array<string|int, string>
- getFractionDigits() : int
- getName() : string
- getNames() : array<string|int, string>
- getNumericCode() : int
- getRoundingIncrement() : float|int
- getSymbol() : string
- getPath() : string
Constants
INDEX_FRACTION_DIGITS
private
mixed
INDEX_FRACTION_DIGITS
= 0
INDEX_NAME
private
mixed
INDEX_NAME
= 1
INDEX_ROUNDING_INCREMENT
private
mixed
INDEX_ROUNDING_INCREMENT
= 1
INDEX_SYMBOL
private
mixed
INDEX_SYMBOL
= 0
Methods
exists()
public
static exists(string $currency) : bool
Parameters
- $currency : string
Return values
bool —forNumericCode()
public
static forNumericCode(int $numericCode) : array<string|int, mixed>
Parameters
- $numericCode : int
Tags
Return values
array<string|int, mixed> —getCurrencyCodes()
public
static getCurrencyCodes() : array<string|int, string>
Return values
array<string|int, string> —getFractionDigits()
public
static getFractionDigits(string $currency) : int
Parameters
- $currency : string
Return values
int —getName()
public
static getName(string $currency[, string $displayLocale = null ]) : string
Parameters
- $currency : string
- $displayLocale : string = null
Tags
Return values
string —getNames()
public
static getNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
- $displayLocale : string = null
Return values
array<string|int, string> —getNumericCode()
public
static getNumericCode(string $currency) : int
Parameters
- $currency : string
Tags
Return values
int —getRoundingIncrement()
public
static getRoundingIncrement(string $currency) : float|int
Parameters
- $currency : string
Return values
float|int —getSymbol()
public
static getSymbol(string $currency[, string $displayLocale = null ]) : string
Parameters
- $currency : string
- $displayLocale : string = null
Tags
Return values
string —getPath()
protected
static getPath() : string