php8.5
Home/ Manual/ zmq / zmqsocket/ ZMQSocket::getSockOpt

ZMQSocket::getSockOpt

PHP function Edit on GitHub ✎

(PECL zmq >= 0.5.0)

Get socket option

Description

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 Integer depending on key. Throws ZMQSocketException on error.

Source: reference/zmq/zmqsocket/getsockopt.xml · from the official PHP manual (php/doc-en)