php8.5
Home/ Manual/ connection / iterator/ Swoole\Connection\Iterator::key

Swoole\Connection\Iterator::key

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Return key of the current connection.

Description

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

This function returns key of the current connection.

Parameters Parameters

Return Values

Key of the current connection.

Source: reference/swoole/swoole/connection/iterator/key.xml · from the official PHP manual (php/doc-en)