public function indexOf( $sequence, $fromIndex = 0, $ignoreCase = false ) {
		if ( $fromIndex < 0 ) {
			$fromIndex = 0;
		} else if ( $fromIndex >= $this->length() ) {
			return - 1;
		}
		if ( $ignoreCase == false ) {
			$index = strpos( $this->value, $sequence, $fromIndex );
		} else {
			$index = stripos( $this->value, $sequence, $fromIndex );
		}

		return $index === false ? - 1 : $index;
	}
public function indexOf( $sequence, $fromIndex = 0, $ignoreCase = false ) {
		if ( $fromIndex < 0 ) {
			$fromIndex = 0;
		} else if ( $fromIndex >= $this->length() ) {
			return - 1;
		}
		if ( $ignoreCase == false ) {
			$index = strpos( $this->value, $sequence, $fromIndex );
		} else {
			$index = stripos( $this->value, $sequence, $fromIndex );
		}

		return $index === false ? - 1 : $index;
	}
public function indexOf ( $ sequence , $ fromIndex = 0 , $ ignoreCase = false ) { if ( $ fromIndex < 0 ) { $ fromIndex = 0 ; } else if ( $ fromIndex >= $ this -> length ( ) ) { return - 1 ; } if ( $ ignoreCase == false ) { $ index = strpos ( $ this -> value , $ sequence , $ fromIndex ) ; } else { $ index = stripos ( $ this -> value , $ sequence , $ fromIndex ) ; } return $ index === false ? - 1 : $ index ; }
Returns the index within this string of the first occurrence of the specified
string, optionally starting the search at the specified index.

@access public

@param string $sequence A string
@param int $fromIndex The index to start the search from
@param boolean $ignoreCase If true, ignore case

@return int the index of the first occurrence of the sequence.
Returns the index within this string of the first occurrence of the specified string optionally starting the search at the specified index .