|
NumberFormatter::formatCurrencynumfmt_format_currencyFormat a currency value DescriptionObject-oriented style
public stringfalse NumberFormatter::formatCurrency(float
$amount, string $currency)Procedural style stringfalse numfmt_format_currency(NumberFormatter
$formatter, float $amount, string $currency)Format the currency value according to the formatter rules. Parameters
Return Values
String representing the formatted currency value, or ExamplesExample #1 numfmt_format_currency example Example #2 OO example The above example will output: 1.234.567,89 € 1.234.567,89 RUR 1 234 567,89€ 1 234 567,89р. Notes
See Also
|