Filter Process
"or" operator
| name | income |
|
John |
$50,000 |
|
Marry |
$60,000 |
|
Peter |
$100,000 |
|
Donald |
$80,000 |
->pipe(new Filter(array(
function ($row) {
return ((float) $row['income']) > 50000;
},
function ($row) {
return ((float) $row['income']) < 90000;
},
)))
| name | income |
|
Marry |
$60,000 |
|
Donald |
$80,000 |
The example demonstrates usage of `Filter` process. The filter process is used to filter data by condition.
__function condition__
```
->pipe(new Filter(array(
function ($row) {
return ((float) $row['income']) > 50000;
},
function ($row) {
return ((float) $row['income']) < 90000;
},
)))
```