note 106321 added to function.ctype-digit
| From: | Jaime at osu1 dot php dot net | Date: | Thu, 27 Oct 2011 13:15:05 +0000 |
| Subject: | note 106321 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184165@lists.php.net to get a copy of this message | ||
Regarding the previous proposal for "ctype_int()", I'd like to point out that,
technically speaking, "ctype_int" is a contradiction in terms. The ctype_ functions are
about verifying that all characters in a given text are of a certain type. Being an integer is about
the text taken as a whole, not about individual characters.
So, if you want to be very pedant and rigurous, call the function either "text_is_int()",
or "ctype_digitminus()". :)
----
Server IP: 69.147.83.197
Probable Submitter: 194.88.148.6
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/106321
Del: integrated -- https://master.php.net/note/delete/106321/integrated
Del: useless -- https://master.php.net/note/delete/106321/useless
Del: bad code -- https://master.php.net/note/delete/106321/bad+code
Del: spam -- https://master.php.net/note/delete/106321/spam
Del: non-english -- https://master.php.net/note/delete/106321/non-english
Del: in docs -- https://master.php.net/note/delete/106321/in+docs
Del: other reasons-- https://master.php.net/note/delete/106321
Reject -- https://master.php.net/note/reject/106321
Search -- https://master.php.net/manage/user-notes.php