note 15737 deleted from function.is-int by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 23:35:03 +0000 |
| Subject: | note 15737 deleted from function.is-int by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23581@lists.php.net to get a copy of this message | ||
Of course, my function above will only work if the supplied argument is of type string. Since this
is supposed to be used for validating user input (which would be of type string anyway) it
shouldn't matter.
If you need it to work for integer input as well, then add
elseif (is_int($id)) return true;
in the appropriate place.