Skip to content

Commit b4ae2a8

Browse files
minworkgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 3145bd9 commit b4ae2a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/manipulating-array/filtering.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Filtering
22

3+
## filter
4+
5+
#### Definition
6+
7+
```php
8+
Arr::filter(array $array, ?callable $callback = null, int $flag = 0): array
9+
```
10+
11+
#### Description
12+
13+
Wrapper around PHP built-in [array\_filter](https://www.php.net/manual/en/function.array-filter.php) method to allow [chaining](https://minwork.gitbook.io/array/object-oriented-methods/general-information#chaining) in `ArrObj`
14+
15+
#### Examples
16+
17+
See [array\_filter examples](https://www.php.net/manual/en/function.array-filter.php#refsect1-function.array-filter-examples)
18+
319
## filterByKeys
420

521
#### Definition

0 commit comments

Comments
 (0)