Re: commas

From: Date: Thu, 17 Jul 2003 14:32:06 +0000
Subject: Re: commas
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29306@lists.php.net to get a copy of this message
Thanks guys! number_format() works great!! "Chris Mach" <cjmach@gto.net> wrote in message news:20030717124250.78648.qmail@pb1.pair.com... > Is there a function that will strip or add commas? > > I'm trying to do calculations with attendance numbers of football games... > for example: 33,153 > > right now I don't have a comma for the numbers in the database. So the above > example is 33153 in my database. If I put the comma in, when I try to do > calculations with php it sees it as 33 instead of 33,153. > > So is there a way to add that comma afterwards? Perhaps a string function at > will put the comma in after the first 3 characters? > > Thanks > > > >

« previous php.db (#29306) next »