Currency symbol provided will be inserted into formatted number string.
Note: currently length is not used in currencyFormats from CLDR.
But it's defined in the specification, so we support it here.
public formatCurrencyNumber ( mixed $number, |
||
$number | mixed | Float or int, can be negative, can be NaN or infinite |
$locale | ||
$currency | string | Currency symbol (or name) |
$formatLength | string | One of NumbersReader FORMAT_LENGTH constants |
return | string | Formatted number. Will return string-casted version of $number if there is no pattern for given $locale / $formatLength |