array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'zmqsocket.getpersistentid.php', 1 => 'ZMQSocket::getPersistentId', 2 => 'Get the persistent id', ), 'up' => array ( 0 => 'class.zmqsocket.php', 1 => 'ZMQSocket', ), 'prev' => array ( 0 => 'zmqsocket.getendpoints.php', 1 => 'ZMQSocket::getEndpoints', ), 'next' => array ( 0 => 'zmqsocket.getsockettype.php', 1 => 'ZMQSocket::getSocketType', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zmq/zmqsocket/getpersistentid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ZMQSocket::getPersistentId

(PECL zmq >= 0.5.0)

ZMQSocket::getPersistentIdGet the persistent id

说明

public ZMQSocket::getPersistentId(): string

Returns the persistent id of the socket.

参数

此函数没有参数。

返回值

Returns the persistent id string assigned of the object and null if socket is not persistent.