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
 
<ZMQSocket::getSocketTypeZMQSocket::isPersistent>
^ZMQSocketLast updated: Mon, 26 Oct 2026

ZMQSocket::getSockOpt

(PECL zmq >= 0.5.0)

ZMQSocket::getSockOpt — Get socket option

Description

public function ZMQSocket::getSockOpt(string $key): mixed

Returns the value of a socket option.

Parameters

key

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

Return Values

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


<ZMQSocket::getSocketTypeZMQSocket::isPersistent>
^ZMQSocketLast updated: Mon, 26 Oct 2026