|
MongoClient::setReadPreferenceSet the read preference for this connection This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension. Description
public bool MongoClient::setReadPreference
( string
$read_preference
[, array $tags
] )Parameters
Return ValuesReturns Errors/ExceptionsEmits ExamplesExample #1 MongoClient::setReadPreference tag set array syntax example
<?php See Also
|