MongoDB\Driver\ReadPreference
PHP Manual

MongoDB\Driver\ReadPreference::__construct

(mongodb >=0.2.0)

MongoDB\Driver\ReadPreference::__constructDescription

Descripción

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

Parámetros

readPreference

tagSets

Valores devueltos

Errores/Excepciones

Ejemplos

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

<?php

/* ... */

?>

El resultado del ejemplo sería algo similar a:

...

Ver también


MongoDB\Driver\ReadPreference
PHP Manual