Re: sprintf thousand separator.
| From: | chris smith | Date: | Wed, 11 Feb 2009 12:57:51 +0000 |
| Subject: | Re: sprintf thousand separator. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288113@lists.php.net to get a copy of this message | ||
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/