MongoDB\Driver\Cursor::__construct
MongoDB\Driver\Cursor::getServer
MongoDB\Driver\Cursor
PHP Manual

# MongoDB\Driver\Cursor::getId

(mongodb >=0.2.0)

MongoDB\Driver\Cursor::getId — Returns the CursorId for this cursor

### Description

final public MongoDB\Driver\CursorId MongoDB\Driver\Cursor::getId ( void )

### Parameters

This function has no parameters.

### Return Values

### Errors/Exceptions

### Examples

Example #1 MongoDB\Driver\Cursor::getId() example

`<?php
/* ... */
?>`

The above example will output something similar to:

    ...

### See Also

MongoDB\Driver\Cursor::__construct
MongoDB\Driver\Cursor::getServer
MongoDB\Driver\Cursor
PHP Manual