note 34257 deleted from function.ctype-digit by didou

From: Date: Tue, 28 Oct 2003 09:09:13 +0000
Subject: note 34257 deleted from function.ctype-digit by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59408@lists.php.net to get a copy of this message
Note Submitter: Captain Hook ---- 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));

« previous php.notes (#59408) next »