Adding a Comma
Posted: Wed Jun 14, 2006 12:22 pm
I have a number i need to format with a comma. For example:
$120,450.00 is what i would want. The code I have found does
not give me that choice.
What I have found is this:
$total_principal = number_format($loan_amount, 2, '.', ' ');
which gives me:
$149 133.37
How can I add a comma with large money amounts?
Your help is greatly appreciated.
JT[/b]
$120,450.00 is what i would want. The code I have found does
not give me that choice.
What I have found is this:
$total_principal = number_format($loan_amount, 2, '.', ' ');
which gives me:
$149 133.37
How can I add a comma with large money amounts?
Your help is greatly appreciated.
JT[/b]