public static function lastIndexOf($string, $needle, $strict = true, $offset = 0) {
        if ($strict) {
            return mb_strrpos($string, $needle, $offset);
        }

        return mb_strripos($string, $needle, $offset);
    }
public static function lastIndexOf($string, $needle, $strict = true, $offset = 0) {
        if ($strict) {
            return mb_strrpos($string, $needle, $offset);
        }

        return mb_strripos($string, $needle, $offset);
    }
public static function lastIndexOf ( $ string , $ needle , $ strict = true , $ offset = 0 ) { if ( $ strict ) { return mb_strrpos ( $ string , $ needle , $ offset ) ; } return mb_strripos ( $ string , $ needle , $ offset ) ; }
Grab the index of the last matched character.

@param string $string
@param string $needle
@param bool $strict
@param int $offset
@return int
Grab the index of the last matched character .