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\Document::getMongoDB\BSON\Document::has>
^MongoDB\BSON\DocumentLast updated: Mon, 26 Oct 2026

MongoDB\BSON\Document::getIterator

(mongodb >=1.16.0)

MongoDB\BSON\Document::getIterator — Returns an iterator for the BSON document

Description

final public function MongoDB\BSON\Document::getIterator(): MongoDB\BSON\Iterator

Parameters

This function has no parameters.

Return Values

Returns a MongoDB\BSON\Iterator instance that can be used to iterate over all keys in the document.

Errors/Exceptions

See Also


<MongoDB\BSON\Document::getMongoDB\BSON\Document::has>
^MongoDB\BSON\DocumentLast updated: Mon, 26 Oct 2026