MongoCursor::current

(PECL mongo >=0.9.0)

MongoCursor::currentReturns the current element

Descrição

public MongoCursor::current ( ) : array

This returns null until MongoCursor::next() is called.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

The current result document as an associative array. null will be returned if there is no result.

Veja Também