MongoDB\Driver\Cursor
PHP Manual

MongoDB\Driver\Cursor::getServer

(mongodb >=0.2.0)

MongoDB\Driver\Cursor::getServerReturns the Server object to which this cursor is attached

Description

final public MongoDB\Driver\Server MongoDB\Driver\Cursor::getServer ( void )

Parameters

This function has no parameters.

Return Values

Errors/Exceptions

Examples

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

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


MongoDB\Driver\Cursor
PHP Manual