|
CollectionFind::limitLimit number of returned documents Description
public mysql_xdevapi\CollectionFind mysql_xdevapi\CollectionFind::limit(int
$rows )Set the maximum number of documents to return. Parameters
Return ValuesA CollectionFind object that can be used for additional processing; chain with the execute() method to return a DocResult object. ExamplesExample #1 mysql_xdevapi\CollectionFind::limit example
The above example will output something similar to: array(1) { [0]=> array(4) { ["_id"]=> string(28) "00005b6b536100000000000000f3" ["age"]=> int(42) ["job"]=> string(6) "Butler" ["name"]=> string(8) "Reginald" } } |