|
CollectionFind::offsetSkip given number of elements to be returned Description
public mysql_xdevapi\CollectionFind mysql_xdevapi\CollectionFind::offset(int
$position )Skip (offset) these number of elements that otherwise would be returned by the find operation. Use with the limit() method. Defining an offset larger than the result set size results in an empty set. Parameters
Return ValuesA CollectionFind object that can be used for additional processing. ExamplesExample #1 mysql_xdevapi\CollectionFind::offset example
The above example will output something similar to: array(1) { [0]=> array(4) { ["_id"]=> string(28) "00005b6b536100000000000000f3" ["age"]=> int(42) ["job"]=> string(6) "Butler" ["name"]=> string(8) "Reginald" } } |