PEAR::isError()

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

Synopsis

require_once 'PEAR.php';

boolean PEAR::isError ( mixed $data , mixed $msgcode )

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

set a shutdown function for static classes (package developer related) (Previous) Create a new PEAR_Error object and optionally specify error-handling instructions (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.