MongoCursor::next

(PECL mongo >=0.9.0)

MongoCursor::nextAdvances the cursor to the next result, and returns that result

说锟斤拷

public MongoCursor::next ( void ) : array

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

Returns the next document.

锟斤拷锟斤拷锟届常

Throws MongoConnectionException if it cannot reach the database and MongoCursorTimeoutException if the timeout is exceeded.

锟轿硷拷

  • Iterator::next() - 锟斤拷前锟狡讹拷锟斤拷锟斤拷一锟斤拷元锟斤拷