Limit Process
This example shows the usage of Limit process
name | income |
---|---|
John | $50,000 |
Marry | $60,000 |
Peter | $100,000 |
Donald | $80,000 |
->pipe(new Limit(
array(2,0)
))
name | income |
---|---|
John | $50,000 |
Marry | $60,000 |
Description
The example demonstrates usage of Limit
process. The filter process is used to limit data. In above example, the process will return 2 rows and starting at row 0. The format is
->pipe(new Limit(array($size,$offset)))
Short form
Most of the case we return the first number of rows so limit in above example is equivalent to:
->pipe(new Limit(
array(2)
))