Hi guys quick and simple question for ya 🙂
Does anybody know the function to convert numbers to include "," where applicable?
Thanks
[man]number_format[/man]
yeah... $million = 1000000; $millionFormatted = number_format($million,0);
echo "$millionFormatted";
would display 1,000,000.
the second value in the parenthesis determines how many decimal places to display.