Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 250.0Kb
HTML Download (Zip) - 257.5Kb


MySQL PHP API  /  ...  /  CollectionModify::skip

5.9.10 CollectionModify::skip

Copyright 1997-2019 the PHP Documentation Group.

  • CollectionModify::skip

    Skip elements

Description

public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::skip(integer position);

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.

Warning

This function is currently not documented; only its argument list is available.

Parameters

position

Number of elements to skip.

Return Values

A CollectionModify object to use for further processing.

Examples

Example 5.48 mysql_xdevapi\CollectionModify::skip example

<?php

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

?>