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

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

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

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

        return (ord($buf[0]) + (ord($buf[1]) << 8) +
            (ord($buf[2]) << 16) + (ord($buf[3]) << 24));
    }
public function readInt ( ) { if ( ! is_resource ( $ this -> fp ) ) { return $ this -> raiseError ( 'not connected' ) ; } $ buf = @ fread ( $ this -> fp , 4 ) ; return ( ord ( $ buf [ 0 ] ) + ( ord ( $ buf [ 1 ] ) << 8 ) + ( ord ( $ buf [ 2 ] ) << 16 ) + ( ord ( $ buf [ 3 ] ) << 24 ) ) ; }
Reads an int of data

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