Skip to content

Commit 6d29450

Browse files
committed
IHF: Readme info added.
1 parent 6c32391 commit 6d29450

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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()`

0 commit comments

Comments
 (0)