Re: sprintf thousand separator.

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

 



chris smith wrote:

> 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.
> 

I wonder why number_format() isn't locale sensitive?  


/Per

-- 
Per Jessen, Zürich (2.4°C)


--
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