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

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR::isError()

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

Synopsis

require_once 'PEAR.php';

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

Description

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

Parameter

mixed $data

チェックする変数

mixed $msgcode

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

Return value

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

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

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