| 
 | number_formatFormat a number with grouped thousands Description
   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,  Parameters
 
 Return Values
   A formatted version of  Changelog
 
 Examples
 Example #1 number_format Example For instance, French notation usually use two decimals, comma (',') as decimal separator, and space (' ') as thousand separator. The following example demonstrates various way to format a number: 
<?phpSee Also
 
 |