public function disconnect()
    {
        if (!is_resource($this->connection)) {
            $this->connected = false;

            return true;
        }
        $this->connected = !fclose($this->connection);

        if (!$this->connected) {
            $this->connection = null;
        }

        return !$this->connected;
    }
public function disconnect()
    {
        if (!is_resource($this->connection)) {
            $this->connected = false;

            return true;
        }
        $this->connected = !fclose($this->connection);

        if (!$this->connected) {
            $this->connection = null;
        }

        return !$this->connected;
    }
public function disconnect ( ) { if ( ! is_resource ( $ this -> connection ) ) { $ this -> connected = false ; return true ; } $ this -> connected = ! fclose ( $ this -> connection ) ; if ( ! $ this -> connected ) { $ this -> connection = null ; } return ! $ this -> connected ; }
Disconnect the socket from the current connection.

@return bool Success
Disconnect the socket from the current connection .