note 34257 added to function.ctype-digit

From: Date: Sat, 19 Jul 2003 22:55:41 +0000
Subject: note 34257 added to function.ctype-digit
Groups: php.notes 
Request: Send a blank email to php-notes+get-52403@lists.php.net to get a copy of this message
Note that if string is empty, the function will return TRUE $some_string = "12345"; //This will output 1 (TRUE) echo(ctype_digit($some_string)); $some_string = "ab12"; //This will output 0 (FALSE) echo(ctype_digit($some_string)); $some_string = ""; //This will output 1 (TRUE) echo(ctype_digit($some_string)); ---- Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34257 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34257&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34257&report=yes

« previous php.notes (#52403) next »