Re: sprintf thousand separator.

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

 



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