note 85766 added to function.ctype-digit
| From: | php-comments at mailinator dot com | Date: | Tue, 16 Sep 2008 20:11:29 +0000 |
| Subject: | note 85766 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144461@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 92.48.100.16
Probable Submitter: 82.6.105.92
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/85766
Del: integrated -- https://master.php.net/note/delete/85766/integrated
Del: useless -- https://master.php.net/note/delete/85766/useless
Del: bad code -- https://master.php.net/note/delete/85766/bad+code
Del: spam -- https://master.php.net/note/delete/85766/spam
Del: non-english -- https://master.php.net/note/delete/85766/non-english
Del: in docs -- https://master.php.net/note/delete/85766/in+docs
Del: other reasons-- https://master.php.net/note/delete/85766
Reject -- https://master.php.net/note/reject/85766
Search -- https://master.php.net/manage/user-notes.php