protected function lastIndexOfDynamic($function, $needle, $offset=0)
    {
        $r = $function($this->toString(), $needle, $offset, $this->getEncoding());
        return ($r===false ? -1 : $r);
    }
protected function lastIndexOfDynamic($function, $needle, $offset=0)
    {
        $r = $function($this->toString(), $needle, $offset, $this->getEncoding());
        return ($r===false ? -1 : $r);
    }
protected function lastIndexOfDynamic ( $ function , $ needle , $ offset = 0 ) { $ r = $ function ( $ this -> toString ( ) , $ needle , $ offset , $ this -> getEncoding ( ) ) ; return ( $ r === false ? - 1 : $ r ) ; }
Helper function for strrpos
@param string $function
@param string $needle
@param int $offset
@return int
Helper function for strrpos