« Swoole\Client::wakeup
Swoole\Connection\Iterator::count »
PHP Manual
Swoole
The Swoole\Connection\Iterator class
The Swoole\Connection\Iterator class
(PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Connection\Iterator
implements
Iterator
,
Countable
,
ArrayAccess
{
/* 方法 */
public
count
( ) :
int
public
current
( ) :
Connection
public
key
( ) :
int
public
next
( ) :
Connection
public
offsetExists
(
int
$index
) :
bool
public
offsetGet
(
string
$index
) :
Connection
public
offsetSet
(
int
$offset
,
mixed
$connection
) :
void
public
offsetUnset
(
int
$offset
) :
void
public
rewind
( ) :
void
public
valid
( ) :
bool
}
目录
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 offet 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.