Re: Convert string to integer

From: Date: Fri, 09 May 2003 01:47:26 +0000
Subject: Re: Convert string to integer
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27601@lists.php.net to get a copy of this message
www.php.net/number-format Delz wrote:
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
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.db (#27601) next »