public function readCurrent()
    {
        if ($this->hasCurrent()) {
            $char = $this->input[$this->position];
        } else {
            $char = null;
        }

        return $char;
    }
public function readCurrent()
    {
        if ($this->hasCurrent()) {
            $char = $this->input[$this->position];
        } else {
            $char = null;
        }

        return $char;
    }
public function readCurrent ( ) { if ( $ this -> hasCurrent ( ) ) { $ char = $ this -> input [ $ this -> position ] ; } else { $ char = null ; } return $ char ; }
Returns the current character.

@return string|null
Returns the current character .