Date: 10/31/02
- Next message: Daevid Vincent: "RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?"
- Previous message: John W. Holmes: "RE: [PHP] rename()"
- In reply to: Jay Blanchard: "RE: [PHP] number_format question"
- Next in thread: John W. Holmes: "RE: [PHP] number_format question"
- Reply: John W. Holmes: "RE: [PHP] number_format question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tried it. It works but crops everything after the first "," in the number
if you enter a number with commas. Works great if you don't enter any
commas.
What I need to be able to do:
IN OUT
123456789 > 123,456,789
123456789.00 > 123,456,789
123,456,789.00 > 123,456,789
Ed
On Thu, 31 Oct 2002, Jay Blanchard wrote:
> [snip]
> If I try that I get a wrong parameter count error.
>
> [/snip]
>
> number_format ( float number [, int decimals [, string dec_point [, string
> thousands_sep]]])
>
> number_format($number, 0, '', ',');
>
> Try that ...
>
> Jay
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Daevid Vincent: "RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?"
- Previous message: John W. Holmes: "RE: [PHP] rename()"
- In reply to: Jay Blanchard: "RE: [PHP] number_format question"
- Next in thread: John W. Holmes: "RE: [PHP] number_format question"
- Reply: John W. Holmes: "RE: [PHP] number_format question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

