Format price/currency from MYSQL database using PHP

I have a row for PRICE in my database and it is formatted as an integer with no commas.  I am trying to figure out how to print the price in PHP with appropriate commas (ex 9,000 or 15,000).  Does anyone have any ideas?  Thanks!
jeveloff2Asked:
Who is Participating?
 
steelseth12Commented:
0
 
nplibCommented:
$number = 12345.67;  //number from DB
$formatedNumber = number_format($number, 2);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.