Re: Subscriber count from db

From: Date: Sat, 18 May 2002 01:41:49 +0000
Subject: Re: Subscriber count from db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98111@lists.php.net to get a copy of this message
I think http://www.php.net/manual/en/function.number-format.php might accomplish what you need. HTH, Dw ----- Original Message ----- From: "Randum Ian" <ian@danceportal.co.uk> To: "PHP" <php-general@lists.php.net> 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 > ian@danceportal.co.uk > 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 > >

« previous php.general (#98111) next »