errno()

Description

int errno (void)

Returns the error code of the last error, and Null if no error is accessible.

Example

Example of how to trap an error. It might be a good idea to use errno() to "see" if there is an error present.


... initialize and perform ...

if ($search->errno()) {
   writeLog($search->error());
}

... terminate ...