public function startsWith( $prefix, $fromIndex = 0 ) {
		$pattern = "/^" . preg_quote( $prefix ) . "/";

		return $this->substring( $fromIndex )->matches( $pattern );
	}
public function startsWith( $prefix, $fromIndex = 0 ) {
		$pattern = "/^" . preg_quote( $prefix ) . "/";

		return $this->substring( $fromIndex )->matches( $pattern );
	}
public function startsWith ( $ prefix , $ fromIndex = 0 ) { $ pattern = "/^" . preg_quote ( $ prefix ) . "/" ; return $ this -> substring ( $ fromIndex ) -> matches ( $ pattern ) ; }
Tests if this string starts with the specified prefix, optionally checking
for a match at the specified index.

@access public

@param string $prefix The prefix
@param int $fromIndex Where to begin looking in this string

@return boolean true if the string starts with the given prefix.
Tests if this string starts with the specified prefix optionally checking for a match at the specified index .