MongoDB\Driver\ReadPreference
PHP Manual

MongoDB\Driver\ReadPreference::__construct

(mongodb >=0.2.0)

MongoDB\Driver\ReadPreference::__constructDescription

Description

final public MongoDB\Driver\ReadPreference::__construct ( string $readPreference [, array $tagSets ] )

Parameters

readPreference

tagSets

Return Values

Errors/Exceptions

Examples

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

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


MongoDB\Driver\ReadPreference
PHP Manual