src/Text.php
public function indexOf($string, $offset = 0) {
		$offset = $this->prepareOffset($offset);

		if ($string == '') {
			return $offset;
		}

		return mb_strpos($this->string, (string) $string, $offset, $this->encoding);
	}
public function indexOf($string, $offset = 0) {
		$offset = $this->prepareOffset($offset);

		if ($string == '') {
			return $offset;
		}

		return mb_strpos($this->string, (string) $string, $offset, $this->encoding);
	}
public function indexOf ( $ string , $ offset = 0 ) { $ offset = $ this -> prepareOffset ( $ offset ) ; if ( $ string == '' ) { return $ offset ; } return mb_strpos ( $ this -> string , ( string ) $ string , $ offset , $ this -> encoding ) ; }
Returns the index of a given string, starting at the optional zero-related offset

@param string $string
@param int $offset zero-related offset
@return int|boolean int for the index or false if the given string doesn't occur
Returns the index of a given string starting at the optional zero - related offset