Re: Help w/ sprintf
| From: | Philip Olson | Date: | Sat, 03 Mar 2001 18:10:20 +0000 |
| Subject: | Re: Help w/ sprintf | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42459@lists.php.net to get a copy of this message | ||
consider using number_format, for example :
$formatted_number = number_format(1250560, 2); // 1,250,560.00
$formatted_number = number_format(1250560); // 1,250,560
regards,
Philip Olson
http://www.cornado.com/
On Sat, 3 Mar 2001, Anthony Rodriguez wrote:
> What are the directives for the sprintf function to format an integer with
> commas (e.g.: 1,250,560)?
>
> Thanks!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>