Originally posted by Jerico_Ein
why not search it at PHP Manual?
Heh, good idea.
incarnate, there's quite a list of stuff on that page, one might do what you want. By 'exact' opposite, I assume you mean find the last occurence of a string in a string? I mean, it could be "lose the last non-occurence of an integer in an array" or somesuch, couldn't it?
Heh, how 'bout
$needle="fred";
$needle=strrev($needle);
$haystack="Fred, you were a good dog, oh, fred, come home";
$haystack=strrev($haystack);
$term=strstr($haystack, $needle);
$term=strrev($term);
😉