note 85766 rejected from function.ctype-digit by danbrown

From: Date: Tue, 16 Sep 2008 20:20:05 +0000
Subject: note 85766 rejected from function.ctype-digit by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144462@lists.php.net to get a copy of this message
Note Submitter: php-comments at mailinator dot com ---- This documentation is both incorrect and incomplete. Incorrect because it claims "Returns TRUE if every character in text is a decimal digit, FALSE otherwise." In reality it returns false when given an empty string. This is a contradiction. Incomplete because it assumes that the parameter is a string and doesn't specify what would happen if something else is passed. In particular, passing an integer should intuitively work, but doesn't.

« previous php.notes (#144462) next »