note 79794 added to function.ctype-digit
| From: | michael | Date: | Thu, 13 Dec 2007 07:17:10 +0000 |
| Subject: | note 79794 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133411@lists.php.net to get a copy of this message | ||
ctype_digit() checks if the string contains only digits. It works exactly how it is documented there
is no bugs.
It's a bit of a worry that you guys have a need to check integers for digits, seeing how that
is all they can possibly consist of. You should know what type your variables are, if you don't
then the bug isn't in PHP it's in your code.
- Michael
----
Server IP: 203.16.234.91
Probable Submitter: 219.90.196.119
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/79794
Del: integrated -- https://master.php.net/note/delete/79794/integrated
Del: useless -- https://master.php.net/note/delete/79794/useless
Del: bad code -- https://master.php.net/note/delete/79794/bad+code
Del: spam -- https://master.php.net/note/delete/79794/spam
Del: non-english -- https://master.php.net/note/delete/79794/non-english
Del: in docs -- https://master.php.net/note/delete/79794/in+docs
Del: other reasons-- https://master.php.net/note/delete/79794
Reject -- https://master.php.net/note/reject/79794
Search -- https://master.php.net/manage/user-notes.php