Money Format HELP!!
Posted: Wed Apr 23, 2003 3:17 pm
I have an online invoice page. Here is my echo:
<?php echo $disctot; ?>
This shows the TOTAL of the invoice. However, sometimes it shows it like this "10000.4". When it should read "10,000.40". How can I get it to show:
->Two digits after decimal,
->A comma every 3 numbers.
Thanks.
<?php echo $disctot; ?>
This shows the TOTAL of the invoice. However, sometimes it shows it like this "10000.4". When it should read "10,000.40". How can I get it to show:
->Two digits after decimal,
->A comma every 3 numbers.
Thanks.