Re: sprintf thousand separator.
| From: | Per Jessen | Date: | Wed, 11 Feb 2009 13:06:45 +0000 |
| Subject: | Re: sprintf thousand separator. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288116@lists.php.net to get a copy of this message | ||
chris smith wrote:
> 2009/2/11 João Cândido de Souza Neto <joao@consultorweb.cnt..br>:
>> 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)