(No version information available, might only be in Git)
CollectionModify::limit — Limit number of modified documents
$rows
)Limit the number of documents modified by this operation.
rows
The maximum number of modified documents.
A CollectionModify object.
Example #1 mysql_xdevapi\CollectionModify::limit() example
<?php
$res = $coll->modify(2)->sort('name desc', 'age asc')->limit(4)->set('Married', 'NO')->execute();
?>