RE: [PHP] check for a number

From: Date: Wed, 04 Sep 2002 20:08:30 +0000
Subject: RE: [PHP] check for a number
Groups: php.general 
Request: Send a blank email to php-general+get-115227@lists.php.net to get a copy of this message
is_int($f) will return true if $f is an integer, false otherwise. Check http://www.php.net/manual/en/function.is-int.php HTH, Steve. -----Original Message----- From: Fifield, Mike [mailto:Mike.Fifield@schwab.com] Sent: Wednesday, September 04, 2002 4:04 PM To: php-general@lists.php.net Subject: [PHP] check for a number I am using substr("$f", 0, 1); to get the first character of a string but what to be able to tell if the first character is a digit or a letter is there a way to do this?

« previous php.general (#115227) next »