number_format - 语法
inputber_format(inputber,decimals,decimalpoint,separator)
它用于格式化具有分组千位的输入器
| Sr.No | 参数 & 描述 |
|---|---|
| 1 |
inputber 它包含有关要格式化的输入器的信息。 |
| 2 |
decimals 它指定要设置多少个输入器。 |
| 3 |
decimalpoint 它指定用于小数点的字符串。 |
| 4 |
separator 它指定使用什么字符串来分隔数千个字符串。 |
number_format - 返回值
它返回格式化的输入者。
number_format - 示例
<?php $input=100.9; $formattedinput=inputber_format($input)."<br>"; echo $formattedinput;input, 2); echo $formattedinput; ?>
这将产生以下输出-
101 100.90