public function deleteSufix($sufix)
    {
        if ($this->endWith($sufix) === true) {
            return substr($this->str, 0, -strlen($sufix));
        }

        return $this->str;
    }
public function deleteSufix($sufix)
    {
        if ($this->endWith($sufix) === true) {
            return substr($this->str, 0, -strlen($sufix));
        }

        return $this->str;
    }
public function deleteSufix ( $ sufix ) { if ( $ this -> endWith ( $ sufix ) === true ) { return substr ( $ this -> str , 0 , - strlen ( $ sufix ) ) ; } return $ this -> str ; }
Deletes a sufix of the string.

@param string $sufix The sufix

@return string The string without sufix
Deletes a sufix of the string .