Re: sprintf thousand separator.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris,

Thanks for your answer, but my real problem is to get thousand separator in 
jpgraph class which uses sprintf to display almost everithing;


"chris smith" <dmagick@xxxxxxxxx> escreveu na mensagem 
news:3c1395330902110457i18cec69cy9818e08cdd3ff38e@xxxxxxxxxxxxxxxxx
2009/2/11 João Cândido de Souza Neto <joao@xxxxxxxxxxxxxxxxxxx>:
> Hello everybody.
>
> I´d just like to know if there´s any way of defining a thousand separator 
> to
> a currency value using sprintf.

Use number_format instead of sprintf, it's designed to do what you want.

-- 
Postgresql & php tutorials
http://www.designmagick.com/ 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux