Re: displaying a numeral
| From: | Pat Johnston | Date: | Wed, 29 Jan 2003 02:34:36 +0000 |
| Subject: | Re: displaying a numeral | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18163@lists.php.net to get a copy of this message | ||
Thanks Frank,
The
$english_format_number = number_format($number);
line works a treat.
Cheers, Pat
"Frank M. Kromann" <frank@kromann.info> wrote in message
news:10437979634040000@9866357972520000.9866341568840000...
>
>
> 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
> >
> >
>
>
>