PHP 8.5.0 Beta 3 available for testing

CollectionModify::skip

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

CollectionModify::skip โ€” Skip elements

่ฏดๆ˜Ž

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

?>
๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top