bool|string format(number $value, int $type = self::TYPE_DEFAULT)
Format a number.
bool|string format(number $value, int $type = self::TYPE_DEFAULT)
Format a number.
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. |
bool|string | The formatted value or false on error |
NotImplementedException | If the method is called with the class $style 'CURRENCY' |
MethodArgumentValueNotImplementedException | If the $type is different than TYPE_DEFAULT |
http://www.php.net/manual/en/numberformatter.format.php |
Designed by : w10schools
service@w10schools.com
Please login to continue.