MongoDB\Driver\Server
PHP Manual

MongoDB\Driver\Server::__construct

(mongodb >=0.2.0)

MongoDB\Driver\Server::__constructDescription

Descrierea

final public MongoDB\Driver\Server::__construct ( string $host , string $port [, array $options [, array $driverOptions ]] )

Parametri

host

port

options

driverOptions

Valorile întoarse

Erori/Excepții

Exemple

Example #1 MongoDB\Driver\Server::__construct() example

<?php

/* ... */

?>

Exemplul de mai sus va afișa ceva similar cu:

...

A se vedea și


MongoDB\Driver\Server
PHP Manual