TeamSpeak3/Helper/StringHelper.php
public function endsWith($pattern)
    {
        return (substr($this->string, strlen($pattern) * -1) == $pattern) ? true : false;
    }
public function endsWith($pattern)
    {
        return (substr($this->string, strlen($pattern) * -1) == $pattern) ? true : false;
    }
Returns true if the string ends with $pattern.

@param  string $pattern
@return boolean