MongoDB\Driver\Cursor::rewind

(mongodb >=1.9.0)

MongoDB\Driver\Cursor::rewindRewind the cursor to the first result

Description

public 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