|
NumberFormatter::parsenumfmt_parseParse a number DescriptionObject-oriented style
public intfloatfalse NumberFormatter::parse(string
$string , int $type = NumberFormatter::TYPE_DOUBLE, int &$offset = null )Procedural style intfloatfalse numfmt_parse(
NumberFormatter $formatter ,string $string ,int $type = NumberFormatter::TYPE_DOUBLE,int &$offset = null ) 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
Example #2 OO example
The above example will output: 1234567.891 1234567 See Also
|