note 50090 deleted from function.stripos by aidan
| From: | aidan@php.net | Date: | Mon, 26 Dec 2005 02:20:22 +0000 |
| Subject: | note 50090 deleted from function.stripos by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100717@lists.php.net to get a copy of this message | ||
Note Submitter: tobias dot kappe at hetnet dot nl
----
Since stripos() only is present in PHP 5, you shut use this instead for earlier versions:
<?php
function stripos($haystack,$needle,$offset = 0)
{
return(strpos(strtolower($haystack),strtolower($needle),$offset));
}
?>
Greetings,
Tobias