Home
My Account
About us
Products
Support Services
Buy online
Downloads
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
PHP Manual
Swoole
Installing/Configuring
Predefined Constants
Swoole Functions
Swoole\Async
Swoole\Atomic
Swoole\Buffer
Swoole\Channel
Swoole\Client
Swoole\Connection\Iterator
Swoole\Coroutine
Swoole\Coroutine\Lock
Swoole\Event
Swoole\Exception
Swoole\Http\Client
Swoole\Http\Request
Swoole\Http\Response
Swoole\Http\Server
Swoole\Lock
Swoole\Mmap
Swoole\Module
Swoole\MySQL
Swoole\MySQL\Exception
Swoole\Process
Swoole\Redis\Server
Swoole\Runtime
Swoole\Serialize
Swoole\Server
Swoole\Table
Swoole\Timer
Swoole\WebSocket\Frame
Swoole\WebSocket\Server
Swoole\Client::wakeup
Swoole\Connection\Iterator::count
Swoole
Last updated: Mon, 26 Oct 2026
The Swoole\Connection\Iterator class
(PECL swoole >= 1.9.0)
Introduction
Class synopsis
class
Swoole\Connection\Iterator
implements
Iterator
,
Countable
,
ArrayAccess
{
/* Methods */
public
function
count
():
int
public
function
current
():
Connection
public
function
key
():
int
public
function
next
():
Connection
public
function
offsetExists
(
int
$index
):
bool
public
function
offsetGet
(
string
$index
):
Connection
public
function
offsetSet
(
int
$offset
,
mixed
$connection
):
void
public
function
offsetUnset
(
int
$offset
):
void
public
function
rewind
():
void
public
function
valid
():
bool
}
Table of Contents
Swoole\Connection\Iterator::count
— Count connections.
Swoole\Connection\Iterator::current
— Return current connection entry.
Swoole\Connection\Iterator::key
— Return key of the current connection.
Swoole\Connection\Iterator::next
— Move to the next connection.
Swoole\Connection\Iterator::offsetExists
— Check if offset exists.
Swoole\Connection\Iterator::offsetGet
— Offset to retrieve.
Swoole\Connection\Iterator::offsetSet
— Assign a Connection to the specified offset.
Swoole\Connection\Iterator::offsetUnset
— Unset an offset.
Swoole\Connection\Iterator::rewind
— Rewinds iterator
Swoole\Connection\Iterator::valid
— Check if current position is valid.
Swoole\Client::wakeup
Swoole\Connection\Iterator::count
Swoole
Last updated: Mon, 26 Oct 2026