Lexer.php
protected function peek($length = 1)
    {

        $this->lastPeekResult = $this->substr($this->input, 0, $length);

        return $this->lastPeekResult;
    }
protected function peek($length = 1)
    {

        $this->lastPeekResult = $this->substr($this->input, 0, $length);

        return $this->lastPeekResult;
    }
protected function peek ( $ length = 1 ) { $ this -> lastPeekResult = $ this -> substr ( $ this -> input , 0 , $ length ) ; return $ this -> lastPeekResult ; }
Shows the next characters in our input.

Pass a $length to get more than one character.
The character's _won't_ be consumed here, they are just shown.
The position pointer won't be moved forward

The result gets saved in $_lastPeekResult

@param int $length the length of the string we want to peek on

@return string the peeked string
Shows the next characters in our input .