* Thus wrote Chris Widmer ([EMAIL PROTECTED]):
> hello,
> 
> i am looking for a function that easily searches a sting backwards - 
> just like stripos but reversed. is there already one part of php or does 
> anyone have a nice function written? right now i do it by reversing the 
> sting and using strpos, but this is highly inefficient. any ideas/solutions?

You could use the strrchr function to achieve this:

$pos = strrpos(strtolower($str), $needle);


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to