File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ Provides Laravel-specific and pure PHP helper functions.
2020
2121## Available functions
2222
23+ - [Array](#array)
24+ - [array_except_value](#array_except_value)
25+
2326- [Artisan](#artisan)
2427 - [call_in_background](#call_in_background)
2528
@@ -46,6 +49,25 @@ Provides Laravel-specific and pure PHP helper functions.
4649 - [str_lower](#str_lower)
4750 - [str_upper](#str_upper)
4851
52+ ## Array
53+
54+ #### `array_except_value()`
55+
56+ Removes the given values from array:
57+ ```php
58+ $array = [' foo' , ' bar' , ' baz' ];
59+ $array = array_except_value($array, ' baz' );
60+
61+ // [' foo' , ' bar' ]
62+ ```
63+
64+ ```php
65+ $array = [' foo' , ' bar' , ' baz' ];
66+ $array = array_except_value($array, [' bar' , ' baz' ]);
67+
68+ // [' foo' ]
69+ ```
70+
4971## Artisan
5072
5173#### `call_in_background()`
You can’t perform that action at this time.
0 commit comments