public function startsWith($substring) {
		$substringLength = mb_strlen($substring, $this->encoding);
		$startOfStr = mb_substr($this->string, 0, $substringLength, $this->encoding);

		return (string) $substring === $startOfStr;
	}
public function startsWith($substring) {
		$substringLength = mb_strlen($substring, $this->encoding);
		$startOfStr = mb_substr($this->string, 0, $substringLength, $this->encoding);

		return (string) $substring === $startOfStr;
	}
public function startsWith ( $ substring ) { $ substringLength = mb_strlen ( $ substring , $ this -> encoding ) ; $ startOfStr = mb_substr ( $ this -> string , 0 , $ substringLength , $ this -> encoding ) ; return ( string ) $ substring === $ startOfStr ; }
Checks whether the string starts with the given string. Case sensitive!

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