Re: check for a number

From: Date: Thu, 05 Sep 2002 06:51:50 +0000
Subject: Re: check for a number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115277@lists.php.net to get a copy of this message
Steve Bradwell wrote: > is_int($f) will return true if $f is an integer, false otherwise. is_int will return false in this case, because it's a string. You have to use is_numeric HTH Erwin

« previous php.general (#115277) next »