protected function peek($regex, &$out, $from = null)
    {
        if (! isset($from)) {
            $from = $this->count;
        }

        $r = '/' . $regex . '/' . $this->patternModifiers;
        $result = preg_match($r, $this->buffer, $out, null, $from);

        return $result;
    }
protected function peek($regex, &$out, $from = null)
    {
        if (! isset($from)) {
            $from = $this->count;
        }

        $r = '/' . $regex . '/' . $this->patternModifiers;
        $result = preg_match($r, $this->buffer, $out, null, $from);

        return $result;
    }
protected function peek ( $ regex , & $ out , $ from = null ) { if ( ! isset ( $ from ) ) { $ from = $ this -> count ; } $ r = '/' . $ regex . '/' . $ this -> patternModifiers ; $ result = preg_match ( $ r , $ this -> buffer , $ out , null , $ from ) ; return $ result ; }
Peek input stream

@param string  $regex
@param array   $out
@param integer $from

@return integer
Peek input stream