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

Descripción

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

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Errores/Excepciones

Ejemplos

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

<?php

/* ... */

?>

El resultado del ejemplo sería algo similar a:

...

Ver también


MongoDB\Driver\Cursor
PHP Manual