note 106321 deleted from function.ctype-digit by danbrown
| From: | danbrown@php.net | Date: | Thu, 27 Oct 2011 13:58:58 +0000 |
| Subject: | note 106321 deleted from function.ctype-digit by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184168@lists.php.net to get a copy of this message | ||
Note Submitter: Jaime
----
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()". :)