Rumah > Artikel > pembangunan bahagian belakang > php格式化数字的小例子 number_format函数的用法举例
例2,number_format($n, $p, $t, $d) rounds $n to $p decimal places, using $t as the thousands separator and $d as the decimal separator.
例3,number_format函数用于English format and Italian format
例4,输出格式化的数字形式
|