phpday 2027 - Call for Papers

CollectionModify::skip

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

CollectionModify::skip — Skip elements

Опис

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

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

?>

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top