public static function rPos($haystack, $needle, $offset = 0)
    {
        if (self::isMBString()) {
            return mb_strrpos($haystack, $needle, $offset, self::$encoding);
        }

        return strrpos($haystack, $needle, $offset); // @codeCoverageIgnore
    }
public static function rPos($haystack, $needle, $offset = 0)
    {
        if (self::isMBString()) {
            return mb_strrpos($haystack, $needle, $offset, self::$encoding);
        }

        return strrpos($haystack, $needle, $offset); // @codeCoverageIgnore
    }
public static function rPos ( $ haystack , $ needle , $ offset = 0 ) { if ( self :: isMBString ( ) ) { return mb_strrpos ( $ haystack , $ needle , $ offset , self :: $ encoding ) ; } return strrpos ( $ haystack , $ needle , $ offset ) ; // @codeCoverageIgnore }
Find position of last occurrence of a string in a string

@param string $haystack
@param string $needle
@param int    $offset
@return int
Find position of last occurrence of a string in a string