Re: displaying a numeral
| From: | Frank M. Kromann | Date: | Tue, 28 Jan 2003 23:52:44 +0000 |
| Subject: | Re: displaying a numeral | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18160@lists.php.net to get a copy of this message | ||
http://php.net/number_format
is what you are looking for.
- Frank
> Hi
> I have a field in my MySQL database that's a decimal where I have
figures of
> millions without the decimal point -
>
> i.e - 1500000
>
> Is there a function in PHP to display this figure as a $ amount -
>
> i.e - $1,500,000
>
> I searched PHP manual without finding anything. If there is something
in
> the manual, can someone point me to it..
>
> Regards, Pat
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>