php8.5
Home/ Manual/ driver / cursor/ MongoDB\Driver\Cursor::next

MongoDB\Driver\Cursor::next

PHP function Edit on GitHub ✎

(mongodb >=1.9.0)

Advances the cursor to the next result

Description

MongoDB\Driver\Cursor::next(): void

Parameters Parameters

Return Values

Moves the current position to the next element in the cursor.

Errors/Exceptions

See Also

  • Iterator::next

Source: reference/mongodb/mongodb/driver/cursor/next.xml · from the official PHP manual (php/doc-en)