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 )

인수

이 함수는 인수가 없습니다.

반환값

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


Mongo
PHP Manual