MongoDB\Driver\Cursor::next
PHP Manual
PHP Manual»MongoDB\Driver\Cursor»MongoDB\Driver\Cursor::next

MongoDB\Driver\Cursor::next

(mongodb >=1.9.0)

MongoDB\Driver\Cursor::nextAdvances the cursor to the next result

Description

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

Parameters

This function has no parameters.

Return Values

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

Errors/Exceptions

See Also

To Top