strrpos() function locates the last occurrence of character in string.
Its syntax is: int strrpos (string string, char character) <? print strrpos("asdf","d"); ?>