[wp-hackers] Return Selected Image

Brian Layman Brian at TheCodeCave.com
Tue Dec 26 14:06:12 GMT 2006

>Stripos is a php 5 only function. 
>To achieve the same effect on php 4 i would use regex.

stripos is php 5 strpos isn't. So if you're not a regex guru, I'd recommend
building your own stripos the easy way.  This is how I do it:
if (!function_exists("stripos")) {
  function stripos($str, $needle, $offset=0)
    return strpos(strtolower($str), strtolower($needle), $offset);

(That particular version is copied from http://us2.php.net/function.stripos

Brian Layman

More information about the wp-hackers mailing list