|
NumberFormatter::parsenumfmt_parseParse a number DescriptionObject oriented style
public
mixed
NumberFormatter::parse
( string
$value
[, int $type
[, int &$position
]] )Procedural style
mixed
numfmt_parse
( NumberFormatter
$fmt
, string $value
[, int $type
[, int &$position
]] )Parse a string into a number using the current formatter rules. Parameters
Return Values
The value of the parsed number or ExamplesExample #1 numfmt_parse example
<?php Example #2 OO example
<?php The above example will output: 1234567.891 1234567 See Also
|