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
 
<ZMQContext::__constructZMQContext::getSocket>
^ZMQContextLast updated: Mon, 26 Oct 2026

ZMQContext::getOpt

(PECL zmq >= 1.0.4)

ZMQContext::getOpt — Get context option

Description

public function ZMQContext::getOpt(string $key): mixed

Returns the value of a context option.

Parameters

key

An integer representing the option. See the ZMQ::CTXOPT_* constants.

Return Values

Returns either a string or an int depending on key. Throws ZMQContextException on error.


<ZMQContext::__constructZMQContext::getSocket>
^ZMQContextLast updated: Mon, 26 Oct 2026