MongoCursor
PHP Manual

MongoCursor::limit

(PECL mongo >=0.9.0)

MongoCursor::limitLimits the number of results returned

Descrizione

public MongoCursor MongoCursor::limit ( int $num )

Elenco dei parametri

num

The number of results to return.

Valori restituiti

Returns this cursor.

Errori/Eccezioni

Throws MongoCursorException if this cursor has started iterating.

Vedere anche:


MongoCursor
PHP Manual