update : 2015.11.03
php.shukuma.com검색:
|
number_format(PHP 4, PHP 5) number_format — Format a number with grouped thousands 설명
string number_format
( float
$number
[, int $decimals = 0
] )
string number_format
( float
$number
, int $decimals = 0
, string $dec_point = "."
, string $thousands_sep = ","
)This function accepts either one, two, or four parameters (not three):
If only one parameter is given,
If two parameters are given,
If all four parameters are given, 인수
반환값
A formatted version of 변경점
예제
Example #1 number_format() Example For instance, French notation usually use two decimals, comma (',') as decimal separator, and space (' ') as thousand separator. This is achieved with this line :
<?php 참고
|