|
NumberFormatter::parseCurrencynumfmt_parse_currencyParse 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
|