mysql_xdevapi\CollectionFind
PHP Manual

CollectionFind::skip

(No version information available, might only be in Git)

CollectionFind::skipSkip given number of elements to be returned

说明

public mysql_xdevapi\CollectionFind mysql_xdevapi\CollectionFind::skip ( integer $position )

For the result set of a find operation, skip the first N elements that would be returned by the find operation. If the amout of element skipped is bigger than the size of the result set then the find operation will return an empty set.

参数

position

Number of elements to skip.

返回值

CollectionFind object that can be used for further processing.

范例

Example #1 mysql_xdevapi\CollectionFind::skip() example

<?php

//Assuming $coll is a valid Collection object

//Find all the documents for which the 'job' field is equal to 'Programmatore', skip the first 3
$res $coll->find('job like \'Programmatore\'')->skip(3)->execute();

?>

mysql_xdevapi\CollectionFind
PHP Manual