Filter Process
This example shows the usage of Filter process
name | income |
John |
$50,000 |
Marry |
$60,000 |
Peter |
$100,000 |
Donald |
$80,000 |
->pipe(new Filter(array(
array("income",">",70000)
)))
name | income |
Peter |
$100,000 |
Donald |
$80,000 |
The example demonstrates usage of `Filter` process. The filter process is used to filter data by condition.
__Multiple conditions__
```
->pipe(new Filter(array(
array("income",">","50000"),
array("income","<","80000"),
)))
```
__OR condition__
```
->pipe(new Filter(array(
array("income",">","80000"),
"or",
array("income","<","60000"),
)))
```