MongoDB\Driver\ReadPreference
PHP Manual

MongoDB\Driver\ReadPreference::__construct

(mongodb >=0.2.0)

MongoDB\Driver\ReadPreference::__constructDescription

Descrição

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

Parâmetros

readPreference

tagSets

Valor Retornado

Erros

Exemplos

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

<?php

/* ... */

?>

O exemplo acima irá imprimir algo similar à:

...

Veja Também


MongoDB\Driver\ReadPreference
PHP Manual