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\Driver\Cursor::nextMongoDB\Driver\Cursor::setTypeMap>
^MongoDB\Driver\CursorLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Cursor::rewind

(mongodb >=1.9.0)

MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result

Description

public function MongoDB\Driver\Cursor::rewind(): void

If the cursor has advanced beyond its first position, it can no longer be rewound.

Parameters

This function has no parameters.

Return Values

null.

Errors/Exceptions

See Also


<MongoDB\Driver\Cursor::nextMongoDB\Driver\Cursor::setTypeMap>
^MongoDB\Driver\CursorLast updated: Mon, 26 Oct 2026