|
NumberFormatter::parseCurrencynumfmt_parse_currencyParse a currency number DescriptionObject-oriented style
public floatfalse NumberFormatter::parseCurrency(string
$string , string &$currency , int &$offset = null )Procedural style floatfalse numfmt_parse_currency(
NumberFormatter $formatter ,string $string ,string &$currency ,int &$offset = null ) Parse a string into a float and a currency using the current formatter. Parameters
Return Values
The parsed numeric value or ExamplesExample #1 numfmt_parse_currency example
Example #2 OO example
The above example will output: We have 1234567.89 in USD See Also
|