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

        return ord(@fread($this->fp, 1));
    }
public function readByte()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        return ord(@fread($this->fp, 1));
    }
public function readByte ( ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } return ord ( @ fread ( $ this -> fp , 1 ) ) ; }
Reads a byte of data

@access public
@return integer 1 byte of data from the socket, or a PEAR_Error if
not connected.
Reads a byte of data