Re: Print price value (newbie)
| From: | Awlad Hussain | Date: | Fri, 02 May 2003 14:46:28 +0000 |
| Subject: | Re: Print price value (newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146130@lists.php.net to get a copy of this message | ||
try this ....
$price = 1234567;
$formatted = number_format($price);
-awlad
----- Original Message -----
From: "John M." <bali1a@freemail.hu>
To: <php-general@lists.php.net>
Sent: Friday, May 02, 2003 3:40 PM
Subject: [PHP] Print price value (newbie)
> Hello,
>
> I want to display price values. I have this value as integer.
> What I want is an easy readable form, I mean price=1234567 and display
> 1,234,567.
> Is there any function to do this?
> If not how can I read only one caracter from an integer?
>
> Thanks!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>