& Lt; pclass & quot; foot & quot; & gt; & amp; copy what does & lt; p & nbsp; class & nbsp; foot & nbsp; & gt; & amp; copy, & nbsp; what does & nbsp; & gt; & amp; copy mean? & Nbsp;
What does & copy mean?
©, What does & copy mean?
========================================================== ==============
String number_format (float $ number, int $ decimals = 0, string $ dec_point = '.', string $ thousands_sep = ',')
Number
The number you want to format
Decimals
Decimal places to be retained
Dec_point
Decimal point characters
Thousands_sep
What do you mean by specifying the characters displayed by the thousands separator? What do thousands of separators mean? I can see it in the php document.
Original article "http://www.php.net/number_format
Share: More
------ Solution --------------------
©
Thousands separator
123,456,789
------ Solution --------------------
$number = 1234.56;
// english notation (default)
$english_format_number = number_format($number);
// 1,235
// French notation
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56
$number = 1234.5678;
// english notation without thousands separator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57
?>