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

        $buf = @fread($this->fp, 2);

        return (ord($buf[0]) + (ord($buf[1]) << 8));
    }
public function readWord()
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        $buf = @fread($this->fp, 2);

        return (ord($buf[0]) + (ord($buf[1]) << 8));
    }
public function readWord ( ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } $ buf = @ fread ( $ this -> fp , 2 ) ; return ( ord ( $ buf [ 0 ] ) + ( ord ( $ buf [ 1 ] ) << 8 ) ) ; }
Reads a word of data

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