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