diff --git a/helpers.md b/helpers.md index df8f6b56232..7f8d918a860 100644 --- a/helpers.md +++ b/helpers.md @@ -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