PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Error::__toString - String representation of the error | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Error::__toString

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

Error::__toStringString representation of the error

説明

public string Error::__toString ( void )

Returns the string representation of the error.

パラメータ

この関数にはパラメータはありません。

返り値

Returns the string representation of the error.

例1 Error::__toString() example

<?php
try {
    throw new 
Error("Some error message");
} catch(
Error $e) {
    echo 
$e;
}
?>

上の例の出力は、 たとえば以下のようになります。

Error: Some error message in /home/bjori/tmp/ex.php:3
Stack trace:
#0 {main}

参考


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Error::__toString - String representation of the error」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Error::__toString - String representation of the error」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: