CollectionModify::skip
(No version information available, might only be in Git)
CollectionModify::skip — Skip elements
说明
Skips 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.
参数
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();
?>
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mysql-xdevapi-collectionmodify.skip.php