Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

number_format question 1

Status
Not open for further replies.

captlid

Technical User
Oct 27, 2004
82
US
$price = 150050;
$viewprice = number_format($price, ', ');

This outputs 150,050

How would I get it to output

1,500.50

regards,
 
thanks, I am laughing about it now. That I couldnt figure that out. Good idea, thanks :) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top