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 |
Description
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"),
)))