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

Swoole\Connection\Iterator::offsetSet

(PECL swoole >= 1.9.0)

Swoole\Connection\Iterator::offsetSet — Assign a Connection to the specified offset.

Description

public function 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


<Swoole\Connection\Iterator::offsetGetSwoole\Connection\Iterator::offsetUnset>
^Swoole\Connection\IteratorLast updated: Mon, 26 Oct 2026