|
NumberFormatter::formatnumfmt_formatFormat a number DescriptionObject oriented style
public
string
NumberFormatter::format
( number
$value
[, int $type
] )Procedural style
string
numfmt_format
( NumberFormatter
$fmt
, number $value
[, int $type
] )Format a numeric value according to the formatter rules. Parameters
Return Values
Returns the string containing formatted value, or ExamplesExample #1 numfmt_format example
<?php Example #2 OO example
<?php The above example will output: 1.234.567,891 See Also
|