We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e529a8 commit 46f29dcCopy full SHA for 46f29dc
README.md
@@ -235,7 +235,7 @@ __::groupBy($a, 'continent');
235
##### [__::has](src/__/collections/has.php)
236
Returns true if the collection contains the requested key.
237
```php
238
-__::has(['foo' => 'bar', 'foz' => 'baz'], 'foo');
+__::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
239
// >> true
240
```
241
src/__/collections/has.php
@@ -7,7 +7,7 @@
7
*
8
* In constrast to isset(), __::has() returns true if the key exists but is null.
9
10
- ** __::hasKeys(['foo' => 'bar', 'foz' => 'baz'], 'foo');
+ ** __::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
11
** // → true
12
13
** __::hasKeys((object) ['foo' => 'bar', 'foz' => 'baz'], 'bar');
0 commit comments