Skip to content

Commit b31f3fc

Browse files
committed
test
1 parent c90ad5d commit b31f3fc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source/connect/connection-options.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,17 @@ Read Preference Options
237237
* - :manual:`readPreferenceTags </reference/connection-string/#mongodb-urioption-urioption.readpreferencetags>`
238238
- | **Data Type**: ``array``
239239
| **MongoDB\\Client Example**:
240-
| ``$uriOptions = [ 'readPreferenceTags' => [ [ 'region' => 'east' ], [ 'region' => 'west'] ] ];``
241-
|
242-
| **Connection URI Example**: ``readPreferenceTags=region:east,region:west``
240+
241+
.. code-block:: php
242+
243+
$uriOptions = [
244+
'readPreferenceTags' => [
245+
[ 'region' => 'east' ],
246+
[ 'region' => 'west']
247+
]
248+
];``
249+
250+
**Connection URI Example**: ``readPreferenceTags=region:east,region:west``
243251

244252
Authentication Options
245253
~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)