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

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

PEAR::isError()

PEAR::isError() --  PEAR_Error オブジェクトかどうかチェックする

説明

isError() は、ある変数が PEAR_Error オブジェクトかどうかを調べます。 オプションで、特定のエラーメッセージ またはエラーコードが含まれているかどうかを調べます。

パラメータ

mixed $data

チェックする変数

mixed $msgcode

チェックするエラーメッセージまたはエラーコード(オプション)。

返り値

mixed - 変数が、PEAR_Error の場合に TRUEを返します。 第2引数が設定された場合は、さらに 所与された $msgcode を含む場合のみ TRUEを返します。

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

Download Documentation Last updated: Sun, 29 Jun 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.