PHP » GoLang |
login |
register |
about
|
GoLang NumberFormatter::formatCurrency
request it (386)
GoLang replacement for PHP's NumberFormatter::formatCurrency
[edit | history]
PHP NumberFormatter::formatCurrencyPHP original manual for NumberFormatter::formatCurrency [ show | php.net ]NumberFormatter::formatCurrencynumfmt_format_currency(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) NumberFormatter::formatCurrency -- numfmt_format_currency — Format a currency value DescriptionObject oriented style
public
string
NumberFormatter::formatCurrency
( float
$value
, string $currency
)Procedural style 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
|
more
Recently updated
more
Most requested
more
Last requests
|