From 6d29450a37c89da9ee4802c3e49c1fbc5126f15a Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Tue, 26 Jul 2016 19:00:10 +0300 Subject: [PATCH] IHF: Readme info added. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 4fdd821..75af6a8 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ Provides Laravel-specific and pure PHP helper functions. ## Available functions +- [Array](#array) + - [array_except_value](#array_except_value) + - [Artisan](#artisan) - [call_in_background](#call_in_background) @@ -46,6 +49,25 @@ Provides Laravel-specific and pure PHP helper functions. - [str_lower](#str_lower) - [str_upper](#str_upper) +## Array + +#### `array_except_value()` + +Removes the given values from array: +```php +$array = ['foo', 'bar', 'baz']; +$array = array_except_value($array, 'baz'); + +// ['foo', 'bar'] +``` + +```php +$array = ['foo', 'bar', 'baz']; +$array = array_except_value($array, ['bar', 'baz']); + +// ['foo'] +``` + ## Artisan #### `call_in_background()`