public function read()
    {
        if ($this->_canReadline) {
            $line = readline('');
            if (strlen($line) > 0) {
                readline_add_history($line);
            }

            return $line;
        }

        return fgets($this->_input);
    }
public function read()
    {
        if ($this->_canReadline) {
            $line = readline('');
            if (strlen($line) > 0) {
                readline_add_history($line);
            }

            return $line;
        }

        return fgets($this->_input);
    }
public function read ( ) { if ( $ this -> _canReadline ) { $ line = readline ( '' ) ; if ( strlen ( $ line ) > 0 ) { readline_add_history ( $ line ) ; } return $ line ; } return fgets ( $ this -> _input ) ; }
Read a value from the stream

@return mixed The value of the stream
Read a value from the stream