略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CollectionModify::skip

2024-12-22

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.

警告

本函数还未编写文档,仅有参数列表。

参数

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();

?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.skip.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3