|
MongoDB\Driver\Cursor::getIdReturns the ID for this cursor Description
final public MongoDB\Driver\CursorId MongoDB\Driver\Cursor::getId
( void
)
Returns the MongoDB\Driver\CursorId associated with this cursor. A cursor ID uniquely identifies the cursor on the server. ParametersThis function has no parameters. Return ValuesReturns the MongoDB\Driver\CursorId for this cursor. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\Cursor::getId example
<?phpThe above example will output something similar to:
object(MongoDB\Driver\CursorId)#5 (1) {
["id"]=>
int(94810124093)
}
See Also
|