Net/Socket.php
public function readString()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        $string = '';
        while (($char = @fread($this->fp, 1)) !== "\x00") {
            $string .= $char;
        }

        return $string;
    }
public function readString()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        $string = '';
        while (($char = @fread($this->fp, 1)) !== "\x00") {
            $string .= $char;
        }

        return $string;
    }
public function readString ( ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } $ string = '' ; while ( ( $ char = @ fread ( $ this -> fp , 1 ) ) !== "\x00" ) { $ string .= $ char ; } return $ string ; }
Reads a zero-terminated string of data

@access public
@return string, or a PEAR_Error if
not connected.
Reads a zero - terminated string of data