MongoDB\Driver\Server
PHP Manual

MongoDB\Driver\Server::__construct

(mongodb >=0.2.0)

MongoDB\Driver\Server::__constructDescription

Descrição

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

Parâmetros

host

port

options

driverOptions

Valor Retornado

Erros

Exemplos

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

<?php

/* ... */

?>

O exemplo acima irá imprimir algo similar à:

...

Veja Também


MongoDB\Driver\Server
PHP Manual