MongoCursor
PHP Manual

MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Descrierea

public MongoCursor MongoCursor::limit ( int $num )

Parametri

num

The number of results to return.

Valorile întoarse

Returns this cursor.

Erori/Excepții

Throws MongoCursorException if this cursor has started iterating.

Vedeți de asemenea


MongoCursor
PHP Manual