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.
20
20
21
21
## Available functions
22
22
23
+ - [Array](#array)
24
+ - [array_except_value](#array_except_value)
25
+
23
26
- [Artisan](#artisan)
24
27
- [call_in_background](#call_in_background)
25
28
@@ -46,6 +49,25 @@ Provides Laravel-specific and pure PHP helper functions.
46
49
- [str_lower](#str_lower)
47
50
- [str_upper](#str_upper)
48
51
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
+
49
71
## Artisan
50
72
51
73
#### `call_in_background()`
You can’t perform that action at this time.
0 commit comments