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

MongoDB\Driver\Cursor::valid

PHP function Edit on GitHub ✎

(mongodb >=1.9.0)

Checks if the current position in the cursor is valid

Description

MongoDB\Driver\Cursor::valid(): bool

Parameters Parameters

Return Values

true if the current cursor position is valid, false otherwise.

See Also

  • Iterator::valid

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