note 90218 rejected from function.get-headers by danbrown
| From: | danbrown@php.net | Date: | Fri, 10 Apr 2009 19:39:36 +0000 |
| Subject: | note 90218 rejected from function.get-headers by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153059@lists.php.net to get a copy of this message | ||
Note Submitter: paul at webtop-designs dot com
----
Why use string searching functions at all?
Typecast the responseCode to an int and simply see if it falls between a certain range.
Using string functions to match a number is just wrong!