Re: sprintf thousand separator.
| From: | Jo�o C�ndido de Souza Neto | Date: | Wed, 11 Feb 2009 13:03:06 +0000 |
| Subject: | Re: sprintf thousand separator. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288115@lists.php.net to get a copy of this message | ||
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@gmail.com> escreveu na mensagem
news:3c1395330902110457i18cec69cy9818e08cdd3ff38e@mail.gmail.com...
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.
--
Postgresql & php tutorials
http://www.designmagick.com/