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::getPersistentIdZMQSocket::getSockOpt>
^ZMQSocketLast updated: Mon, 26 Oct 2026

ZMQSocket::getSocketType

(PECL zmq >= 0.5.0)

ZMQSocket::getSocketType — Get the socket type

Description

public function ZMQSocket::getSocketType(): int

Gets the socket type.

Parameters

This function has no parameters.

Return Values

Returns an integer representing the socket type. The integer can be compared against ZMQ::SOCKET_* constants.


<ZMQSocket::getPersistentIdZMQSocket::getSockOpt>
^ZMQSocketLast updated: Mon, 26 Oct 2026