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
 
<IteratorIterator::rewindLimitIterator>
^IteratorIteratorLast updated: Mon, 26 Oct 2026

IteratorIterator::valid

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

IteratorIterator::valid — Checks if the current element is valid

Description

public function IteratorIterator::valid(): bool

Checks whether the current element is valid.

Parameters

This function has no parameters.

Return Values

Returns true if the current element is valid, otherwise false

See Also


<IteratorIterator::rewindLimitIterator>
^IteratorIteratorLast updated: Mon, 26 Oct 2026