NumberFormatter::format()

bool|string format(number $value, int $type = self::TYPE_DEFAULT)

Format a number.

Parameters

number $value The value to format
int $type Type of the formatting, one of the format type constants Only type NumberFormatter::TYPE_DEFAULT is currently supported.

Return Value

bool|string The formatted value or false on error

Exceptions

NotImplementedException If the method is called with the class $style 'CURRENCY'
MethodArgumentValueNotImplementedException If the $type is different than TYPE_DEFAULT

See also

http://www.php.net/manual/en/numberformatter.format.php
doc_Symfony
2016-10-28 06:24:56
Comments
Leave a Comment

Please login to continue.