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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]