PHP » GoLang |
login |
register |
about
|
GoLang NumberFormatter::parseCurrency
request it (362)
GoLang replacement for PHP's NumberFormatter::parseCurrency
[edit | history]
PHP NumberFormatter::parseCurrencyPHP original manual for NumberFormatter::parseCurrency [ show | php.net ]NumberFormatter::parseCurrencynumfmt_parse_currency(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) NumberFormatter::parseCurrency -- numfmt_parse_currency — Parse a currency number DescriptionObject oriented style
public
float
NumberFormatter::parseCurrency
( string
$value
, string &$currency
[, int &$position
] )Procedural style
float
numfmt_parse_currency
( NumberFormatter
$fmt
, string $value
, string &$currency
[, int &$position
] )Parse a string into a double and a currency using the current formatter. Parameters
Return Values
The parsed numeric value or ExamplesExample #1 numfmt_parse_currency() example
<?php Example #2 OO example
<?php The above example will output: We have 1234567.89 in USD See Also
|
more
Recently updated
more
Most requested
more
Last requests
|