Re: Converting a String to Int

From: Date: Wed, 09 Apr 2003 06:51:44 +0000
Subject: Re: Converting a String to Int
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143007@lists.php.net to get a copy of this message
On Wednesday 09 April 2003 02:21, Poon, Kelvin (Infomart) wrote: [snip] > I get a number that is wrong because > $num isn't an integer, I am guessing it has to do with the comma (3,469) in > $num. Can I convert $num=3,469 into an int? If not, can I maybe take out > the comma and then convert it to int? Please help str_replace() the comma with nothing. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Love America -- or give it back. */

« previous php.general (#143007) next »