note 95117 added to function.ctype-digit
| From: | strrevxctodnoxehtaellij at osu1 dot php dot net | Date: | Mon, 14 Dec 2009 16:41:41 +0000 |
| Subject: | note 95117 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163947@lists.php.net to get a copy of this message | ||
ctype_digit() will treat all passed integers below 256 as character-codes. It returns true for 48
through 57 (ASCII '0'-'9') and false for the rest.
ctype_digit(5) -> false
ctype_digit(48) -> true
ctype_digit(255) -> false
ctype_digit(256) -> true
(Note: the PHP type must be an int; if you pass strings it works as expected)
----
Server IP: 91.199.167.223
Probable Submitter: 82.93.241.107
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/95117
Del: integrated -- https://master.php.net/note/delete/95117/integrated
Del: useless -- https://master.php.net/note/delete/95117/useless
Del: bad code -- https://master.php.net/note/delete/95117/bad+code
Del: spam -- https://master.php.net/note/delete/95117/spam
Del: non-english -- https://master.php.net/note/delete/95117/non-english
Del: in docs -- https://master.php.net/note/delete/95117/in+docs
Del: other reasons-- https://master.php.net/note/delete/95117
Reject -- https://master.php.net/note/reject/95117
Search -- https://master.php.net/manage/user-notes.php