comma_format

Description

Formats a number to display in the style of the admin's choosing.

Syntax

string comma_format (float $number)



Parameter $number

Expected type: Double Precision
Description: The number to be formatted



Return value

Expected type: String
Description: The formatted version of the specified number


Notes

  • Uses the format of number_format to decide how to format the number.
  • For example, it might display "1 234,50".
Advertisement: