I think http://www.php.net/manual/en/function.number-format.php might
accomplish what you need.

HTH,
Dw


----- Original Message -----
From: "Randum Ian" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: May 17 2002 08:44 AM
Subject: [PHP] Subscriber count from db


> Hi all, Ive been searching through the archives for this and I am still
none
> the wiser!
>
> Ive done a count on my database and found out I have "1234567890" stored
in
> a variable "$count".
>
> How do I output "1,234,567,890" so that if I write "I have 1,234,567,890
> subscribers" it looks better than "I have 1234567890 subscribers".
>
> A bit of a dummy question I know, Im sorry!
>
> Ian.
> ---
> Randum Ian
> DJ / Reviewer / Webmaster, DancePortal (UK) Limited
> [EMAIL PROTECTED]
> http://www.danceportal.co.uk
> DancePortal.co.uk - Global dance music media
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to