From 233bfbd70a99038ef54966fe54500a7334d2b925 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Sat, 21 Oct 2017 14:05:43 +0200 Subject: [PATCH] Add new array_wrap behaviour to doc --- helpers.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helpers.md b/helpers.md index 32ad1aa90fa..1af5f53377e 100644 --- a/helpers.md +++ b/helpers.md @@ -497,6 +497,14 @@ The `array_wrap` function wraps the given value in an array. If the given value $array = array_wrap($string); // ['Laravel'] + +If the given value is null, an empty array will be returned: + + $nothing = null; + + $array = array_wrap($nothing); + + // [] #### `data_fill()` {#collection-method}