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

Error::getFile - Gets the file in which the error occurred | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Error::getFile

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

Error::getFileGets the file in which the error occurred

説明

final public string Error::getFile ( void )

Get the name of the file the error occurred.

パラメータ

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

返り値

Returns the filename in which the error occurred.

例1 Error::getFile() example

<?php
try {
    throw new 
Error;
} catch(
Error $e) {
    echo 
$e->getFile();
}
?>

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

/home/bjori/tmp/ex.php

参考


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

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