DB::isWarning()

DB::isWarning() -- checks for a warning

Synopsis

require_once 'DB.php';

boolean DB::isWarning (PEAR_Error $value)

Description

Checks whether a result code from a DB method is a warning or not.

Return value

boolean - TRUE, if $value is a warning

Note

This function should be called statically

Warnings can be ignored.

See

DB::isError()