protected function getNext($string)
	{
		// Find the next occurrence of "string" after the current position.
		$pos = strpos($this->input, $string, $this->index);

		// If it's not there return false.
		if ($pos === false)

		{
			return false;
		}

		// Adjust position of index to jump ahead to the asked for string
		$this->index = $pos;

		// Return the first character of that string.
		return substr($this->input, $this->index, 1);
	}
protected function getNext($string)
	{
		// Find the next occurrence of "string" after the current position.
		$pos = strpos($this->input, $string, $this->index);

		// If it's not there return false.
		if ($pos === false)

		{
			return false;
		}

		// Adjust position of index to jump ahead to the asked for string
		$this->index = $pos;

		// Return the first character of that string.
		return substr($this->input, $this->index, 1);
	}
protected function getNext ( $ string ) { // Find the next occurrence of "string" after the current position. $ pos = strpos ( $ this -> input , $ string , $ this -> index ) ; // If it's not there return false. if ( $ pos === false ) { return false ; } // Adjust position of index to jump ahead to the asked for string $ this -> index = $ pos ; // Return the first character of that string. return substr ( $ this -> input , $ this -> index , 1 ) ; }
Pushes the index ahead to the next instance of the supplied string. If it
is found the first character of the string is returned and the index is set
to it's position.

@param  string $string

@return string|false Returns the first character of the string or false.
Pushes the index ahead to the next instance of the supplied string . If it is found the first character of the string is returned and the index is set to it s position .