@@ -112,7 +112,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
112112 // Multiple keys.
113113 $dot->clear([
114114 ' books.{sci-fi & fantasy}' ,
115- ' books.{childre \' s books}'
115+ ' books.{children \' s books}'
116116 ]);
117117
118118 // Vanilla PHP.
@@ -125,7 +125,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
125125 - ```php
126126 $dot->delete(' books.{sci-fi & fantasy}' );
127127 $dot->delete(' books.{sci-fi & fantasy}.0.name' );
128- $dot->delete([' books.{sci-fi & fantasy}.0' , ' books.{childre \' s books}.0' ]);
128+ $dot->delete([' books.{sci-fi & fantasy}.0' , ' books.{children \' s books}.0' ]);
129129 ```
130130
131131- **merge**:
@@ -160,7 +160,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
160160 The signature of the callable must be: `function ($value, $key)`.
161161
162162 - ```php
163- $book = $dot->get(' books.{childre \' s books}' )->find(function ($value, $key) {
163+ $book = $dot->get(' books.{children \' s books}' )->find(function ($value, $key) {
164164 return $value[' price' ] > 0;
165165 });
166166 ```
@@ -170,7 +170,7 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
170170 The signature of the callable must be: `function ($value, $key)`
171171
172172 - ```php
173- $books = $dot->get(' books.{childre \' s books}' )->filter(function ($value, $key) {
173+ $books = $dot->get(' books.{children \' s books}' )->filter(function ($value, $key) {
174174 return $value[' name' ] === ' Harry Potter and the Order of the Phoenix' ;
175175 });
176176
@@ -195,13 +195,13 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
195195 - [ not-between ]
196196 */
197197 // Example 1.
198- $books = $dot->get(' books.{childre \' s books}' )->filterBy(' price' , ' between' , 5, 12);
198+ $books = $dot->get(' books.{children \' s books}' )->filterBy(' price' , ' between' , 5, 12);
199199
200200 // Example 2.
201- $books = $dot->get(' books.{childre \' s books}' )->filterBy(' price' , ' > ' , 10);
201+ $books = $dot->get(' books.{children \' s books}' )->filterBy(' price' , ' > ' , 10);
202202
203203 // Example 3.
204- $books = $dot->get(' books.{childre \' s books}' )->filterBy(' price' , ' in' , [8.5, 15.49]);
204+ $books = $dot->get(' books.{children \' s books}' )->filterBy(' price' , ' in' , [8.5, 15.49]);
205205 ```
206206
207207- **where**:
@@ -227,16 +227,16 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
227227 */
228228
229229 // Example 1. (using the signature: [property, comparisonOperator, ...value])
230- $books = $dot->get(' books.{childre \' s books}' )->where([' price' , ' between' , 5, 12]);
230+ $books = $dot->get(' books.{children \' s books}' )->where([' price' , ' between' , 5, 12]);
231231
232232 // Example 2. (using the signature: [property, comparisonOperator, ...value])
233- $books = $dot->get(' books.{childre \' s books}' )->where([' price' , ' > ' , 10]);
233+ $books = $dot->get(' books.{children \' s books}' )->where([' price' , ' > ' , 10]);
234234
235235 // Example 3. (using the signature: [property, comparisonOperator, ...value])
236- $books = $dot->get(' books.{childre \' s books}' )->where([' price' , ' in' , [8.5, 15.49]]);
236+ $books = $dot->get(' books.{children \' s books}' )->where([' price' , ' in' , [8.5, 15.49]]);
237237
238238 // Example 4. (using the signature: \Closure)
239- $books = $dot->get(' books.{childre \' s books}' )->where(function ($value, $key) {
239+ $books = $dot->get(' books.{children \' s books}' )->where(function ($value, $key) {
240240 return $value[' name' ] === ' Harry Potter and the Order of the Phoenix' ;
241241 });
242242 ```
@@ -337,7 +337,7 @@ $dummyArray = [
337337 ],
338338 ],
339339
340- ' childre \' s books' =>
340+ ' children \' s books' =>
341341 [
342342 [
343343 ' name' => ' Harry Potter and the Order of the Phoenix' ,
0 commit comments