MongoDB\Driver\Server
PHP Manual

MongoDB\Driver\Server::__construct

(mongodb >=0.2.0)

MongoDB\Driver\Server::__constructDescription

Description

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

Parameters

host

port

options

driverOptions

Return Values

Errors/Exceptions

Examples

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

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


MongoDB\Driver\Server
PHP Manual