File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,10 @@ preceding example to use the Iterator methods directly:
98
98
Calling ``$cursor->next()`` after the ``while`` loop naturally ends would
99
99
throw an exception, since all results on the cursor have been exhausted.
100
100
101
- The purpose of this example is simply to demonstrate the functional equivalence
102
- between ``foreach`` and manual iteration with PHP's :php:`Iterator <iterator>`
103
- API. For normal cursors, there is little reason to manually iterate results
104
- instead of a concise ``foreach`` loop.
101
+ The purpose of this example is to demonstrate the functional equivalence between
102
+ ``foreach`` and manual iteration with PHP's :php:`Iterator <iterator>`API.
103
+ For normal cursors, there is little reason to manually iterate results instead
104
+ of a concise ``foreach`` loop.
105
105
106
106
Iterating a Tailable Cursor
107
107
---------------------------
Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ problematic:
118
118
original BSON type.
119
119
120
120
- Numerically-indexed PHP arrays would be serialized as BSON documents if there
121
- was a gap in their key sequence. Such gaps were easily caused by unsetting a
122
- key to remove an element and forgetting to numerically reindex the array.
121
+ was a gap in their key sequence. Such gaps were caused by unsetting a key to
122
+ remove an element and forgetting to numerically reindex the array.
123
123
124
124
The |php-library|'s :phpclass:`BSONDocument <MongoDB\\Model\\BSONDocument>` and
125
125
:phpclass:`BSONArray <MongoDB\\Model\\BSONArray>` classes address these concerns
You can’t perform that action at this time.
0 commit comments