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
 
<Swoole\Connection\Iterator::currentSwoole\Connection\Iterator::next>
^Swoole\Connection\IteratorLast updated: Mon, 26 Oct 2026

Swoole\Connection\Iterator::key

(PECL swoole >= 1.9.0)

Swoole\Connection\Iterator::key — Return key of the current connection.

Description

public function Swoole\Connection\Iterator::key(): int

This function returns key of the current connection.

Parameters

This function has no parameters.

Return Values

Key of the current connection.


<Swoole\Connection\Iterator::currentSwoole\Connection\Iterator::next>
^Swoole\Connection\IteratorLast updated: Mon, 26 Oct 2026