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
 
<MongoDB\BSON\Iterator::rewindMongoDB\BSON\Binary>
^MongoDB\BSON\IteratorLast updated: Mon, 26 Oct 2026

MongoDB\BSON\Iterator::valid

(mongodb >=1.16.0)

MongoDB\BSON\Iterator::valid — Checks if current position is valid

Description

public function MongoDB\BSON\Iterator::valid(): bool

Parameters

This function has no parameters.

Return Values

Returns true if the current iterator position is valid, false otherwise.

See Also


<MongoDB\BSON\Iterator::rewindMongoDB\BSON\Binary>
^MongoDB\BSON\IteratorLast updated: Mon, 26 Oct 2026