note 93379 rejected from function.ctype-digit by danbrown

From: Date: Mon, 07 Sep 2009 12:38:14 +0000
Subject: note 93379 rejected from function.ctype-digit by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160276@lists.php.net to get a copy of this message
Note Submitter: stumblefly at gmail dot com ---- I believe this is wrong. >>> $numeric_string = '42'; $integer = 42; ctype_digit($numeric_string); // true ctype_digit($integer); // false <<< $numeric_string should evaluate as 'false', and $integer should evaluate as true. Scott

« previous php.notes (#160276) next »