PEAR::registerShutdownFunc() (Previous) (Next) PEAR::raiseError()

View this page in Last updated: Sun, 20 Jul 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR::isError()

PEAR::isError() -- checks for a PEAR_Error object

Description

isError() examines whether a variable is a PEAR_Error object and - optional - contains a specific error message or code.

Parameter

mixed $data

variable to check

mixed $msgcode

additional error message or error code to check

Return value

mixed - returns TRUE, if the variable was a PEAR_Error and, if given, contains $msgcode

PEAR::registerShutdownFunc() (Previous) (Next) PEAR::raiseError()

Download Documentation Last updated: Sun, 20 Jul 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.