|
MongoDB\Driver\Cursor::getIdReturns the ID for this cursor Description
final public MongoDB\BSON\Int64 MongoDB\Driver\Cursor::getId()
Returns the ID for this cursor, which uniquely identifies the cursor on the server. ParametersThis function has no parameters. Return ValuesReturns the ID for this cursor. The ID will be returned as a MongoDB\BSON\Int64 object. Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\Driver\Cursor::getId example
The above example will output something similar to: object(MongoDB\BSON\Int64)#5 (1) { ["integer"]=> string(11) "94810124093" } See Also
|