call strripos $haystack=…;$needle=…[;$offset=…]
If $offset is positive the search for the $needle will begin at $offset from the start of the $haystack.
If $offset is negative the search for the $needle will begin at $offset from the end of the $haystack