Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ZMQExceptionZMQContext::__construct>
^0MQ messagingLast updated: Mon, 26 Oct 2026

The ZMQContext class

(PECL zmq >= 0.5.0)

Introduction

Class synopsis

class ZMQContext {
/* Methods */
public function __construct(int $io_threads = 1, bool $is_persistent = true)
public function getOpt(string $key): mixed
public function getSocket(int $type, string $persistent_id = null, callable $on_new_socket = null): ZMQSocket
public function isPersistent(): bool
public function setOpt(int $key, mixed $value): ZMQContext
}

Table of Contents


<ZMQExceptionZMQContext::__construct>
^0MQ messagingLast updated: Mon, 26 Oct 2026