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

Swoole\Connection\Iterator::offsetSet

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Assign a Connection to the specified offset.

Description

Swoole\Connection\Iterator::offsetSet(int $offset, mixed $connection): void

Assign a Connection to the specified offset.

Parameters

offset

The offset to assign the Connection to.

connection

The connection to set.

Return Values

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