boolean PEAR::isError (
mixed $data
,
mixed $msgcode
)
isError() examines whether a variable is a PEAR_Error object and - optional - contains a specific error message or code.
$data
variable to check
$msgcode
additional error message or error code to check
mixed
- returns TRUE, if the variable was a
PEAR_Error and, if given, contains
$msgcode