|
CollectionModify::limitLimit number of modified documents Description
public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::limit(int
$rows)Limit the number of documents modified by this operation. Optionally combine with skip() to define an offset value. Parameters
Return ValuesA CollectionModify object. ExamplesExample #1 mysql_xdevapi\CollectionModify::limit example The above example will output something similar to:
Array
(
[0] => Array
(
[_id] => 00005b6b53610000000000000118
[age] => 21
[job] => Construction
[name] => Fred
)
[1] => Array
(
[_id] => 00005b6b53610000000000000119
[age] => 23
[job] => Principal
[name] => Wilma
)
[2] => Array
(
[_id] => 00005b6b5361000000000000011a
[age] => 24
[job] => Teacher
[name] => Betty
)
)
|