NumberFormatter::parse()

int|float|false parse(string $value, int $type = self::TYPE_DOUBLE, int $position)

Parse a number.

Parameters

string $value The value to parse
int $type Type of the formatting, one of the format type constants. NumberFormatter::TYPE_DOUBLE by default
int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended

Return Value

int|float|false The parsed value of false on error

See also

http://www.php.net/manual/en/numberformatter.parse.php
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.