src/Text.php
public function endsWith($substring) {
		$substringLength = mb_strlen($substring, $this->encoding);
		$endOfStr = mb_substr($this->string, $this->length() - $substringLength, $substringLength, $this->encoding);

		return (string) $substring === $endOfStr;
	}
public function endsWith($substring) {
		$substringLength = mb_strlen($substring, $this->encoding);
		$endOfStr = mb_substr($this->string, $this->length() - $substringLength, $substringLength, $this->encoding);

		return (string) $substring === $endOfStr;
	}
public function endsWith ( $ substring ) { $ substringLength = mb_strlen ( $ substring , $ this -> encoding ) ; $ endOfStr = mb_substr ( $ this -> string , $ this -> length ( ) - $ substringLength , $ substringLength , $ this -> encoding ) ; return ( string ) $ substring === $ endOfStr ; }
Checks whether the string ends with the given string. Case sensitive!

@see Text::endsWithIgnoreCase()
@param string|Text $substring The substring to look for
@return boolean
Checks whether the string ends with the given string . Case sensitive!