Converting to integer

From: Date: Tue, 16 Nov 2004 12:53:24 +0000
Subject: Converting to integer
Groups: php.general 
Request: Send a blank email to php-general+get-202130@lists.php.net to get a copy of this message
Hi all, I get some values from a MySQL table and some of them are in the format 1000.0, 234.0, etc. I want those values converted as 1000, 234, and so on, but the other string values need to remain the same. I have tried using the function is_numeric to test which of the values returned from MySQL are numbers, but none of them appear to be a number, so I cannot convert them. Thank you for any tips. Teddy

« previous php.general (#202130) next »