note 98300 rejected from function.stripos by kalle
| From: | kalle@php.net | Date: | Tue, 08 Jun 2010 08:22:22 +0000 |
| Subject: | note 98300 rejected from function.stripos by kalle | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169933@lists.php.net to get a copy of this message | ||
Note Submitter: gireeshda at yahoo dot com
----
function "stripos" not working in php file without .php extension. Returns error. Seems
to be a bug.
To ensure that stripos works in all php version/platforms in files without .php extension, use the
following code:
strpos(strtolower($haystack), strtolower($needle), [ $offset = 0 ] )