note 59333 deleted from function.stripos by aidan
| From: | aidan@php.net | Date: | Mon, 26 Dec 2005 02:20:05 +0000 |
| Subject: | note 59333 deleted from function.stripos by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100714@lists.php.net to get a copy of this message | ||
Note Submitter: quake2005 at gmail dot com
----
You could use that, but i always use this for compatibility:
<?php
if(!function_exists('stripos')) {
function stripos($haystack, $needle) {
$parts = explode(strtolower($needle), strtolower($haystack), 2);
if (count($parts) == 1) {
return false;
}
return strlen($parts[0]);
}
}
?>