Convert string to integer

From: Date: Fri, 09 May 2003 01:36:58 +0000
Subject: Convert string to integer
Groups: php.db 
Request: Send a blank email to php-db+get-27600@lists.php.net to get a copy of this message
Hi All, I'm using php scripts to access mysql and I just want to know how to convert a string to an integer wherein if I have a value of 200000000 I want php to output it as 200,000,000. I just want to output the numbers generated w/ commas to better identify if its in thousands, hundred thousands or millions. I normally would want to use this for computations wherein I would get the value from mysql and print the output on a php script with the pattern that I want. I hope that somebody could help me how to do this. Regards, Delz

« previous php.db (#27600) next »