Mongo::forceError
Mongo::pairConnect
Mongo
PHP Manual

# Mongo::lastError

(PECL mongo >=0.9.0)

Mongo::lastError — Check if there was an error on the most recent db operation performed

### Descripción

public string Mongo::lastError ( void )

### Lista de parámetros

This function has no parameters.

### Valores retornados

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

Mongo::forceError
Mongo::pairConnect
Mongo
PHP Manual