Mongo
PHP Manual

Mongo::lastError

(PECL mongo >=0.9.0)

Mongo::lastErrorCheck if there was an error on the most recent db operation performed

Описание

public string Mongo::lastError ( void )

Список параметров

This function has no parameters.

Возвращаемые значения

Returns the error, if there was one, or NULL.


Mongo
PHP Manual