public function endsWith($suffix)
    {
        return $suffix === ''
        || $suffix === mb_substr(
            $this->contents,
            -strlen((string) $suffix),
            null,
            $this->encoding
        );
    }
public function endsWith($suffix)
    {
        return $suffix === ''
        || $suffix === mb_substr(
            $this->contents,
            -strlen((string) $suffix),
            null,
            $this->encoding
        );
    }
public function endsWith ( $ suffix ) { return $ suffix === '' || $ suffix === mb_substr ( $ this -> contents , - strlen ( ( string ) $ suffix ) , null , $ this -> encoding ) ; }
Returns true if the string ends with the provided string.

@param string|Rope $suffix

@return bool
Returns true if the string ends with the provided string .