Page 1 of 1

Seeking assistant is converting numbers to currency

Posted: Fri Jul 10, 2009 8:05 pm
by VVal
Good afternoon, I would appreciate any help I can get on the subjected topic;

I have a variable called $money_available, this return a number, however I want it to display in dollar format for instance. I want 1000000 to be displayed as $1,000,000. Can anyone assist me in getting this output?

<td>'.$field['money_available'].'</td

How would I use the php function that do this conversion in the line above?

Thank you

Re: Seeking assistant is converting numbers to currency

Posted: Fri Jul 10, 2009 9:15 pm
by requinix
So I guess you haven't heard about the number_format function?