CollectionModify::skip

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

CollectionModify::skipSkip elements

說明

public mysql_xdevapi\CollectionModify::skip(int $position): mysql_xdevapi\CollectionModify

Skip the first N elements that would otherwise be returned by a find operation. If the number of elements skipped is larger than the size of the result set, then the find operation returns an empty set.

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

position

Number of elements to skip.

返回值

A CollectionModify object to use for further processing.

范例

示例 #1 mysql_xdevapi\CollectionModify::skip() example

<?php

$coll
->modify('age > :age')->sort('age desc')->unset(['age'])->bind(['age' => 20])->limit(4)->skip(1)->execute();

?>