note 98301 deleted from function.stripos by philip
| From: | philip@php.net | Date: | Mon, 01 Aug 2011 14:52:13 +0000 |
| Subject: | note 98301 deleted from function.stripos by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182069@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 ] )