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

Swoole\Connection\Iterator::valid

(PECL swoole >= 1.9.0)

Swoole\Connection\Iterator::valid — Check if current position is valid.

Description

public function Swoole\Connection\Iterator::valid(): bool

Checks if the current position is valid.

Parameters

This function has no parameters.

Return Values

Returns TRUE if the current iterator position is valid, otherwise FALSE.


<Swoole\Connection\Iterator::rewindSwoole\Coroutine>
^Swoole\Connection\IteratorLast updated: Mon, 26 Oct 2026