Skip to content

Commit

Permalink
Merge pull request #2104 from huntie/patch-1
Browse files Browse the repository at this point in the history
Fix second parameter in array_has() usage example
  • Loading branch information
taylorotwell committed Feb 1, 2016
2 parents 7cf6ca6 + a098443 commit 4f0e48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ The `array_has` function checks that a given item exists in an array using "dot"

$array = ['products' => ['desk' => ['price' => 100]]];

$hasDesk = array_has($array, ['products.desk']);
$hasDesk = array_has($array, 'products.desk');

// true

Expand Down

0 comments on commit 4f0e48c

Please sign in to comment.