Exception::getFile
(PHP 5 >= 5.1.0)
Exception::getFile — نام فایل ایجاد کننده استثنا را باز میگرداند
Description
final public string Exception::getFile
( void
)
نام فایل ایجاد کننده استثنا را باز میگرداند.
Parameters
This function has no parameters.
Return Values
نام فایل ایجاد کننده استثنا را باز میگرداند.
Examples
Example #1 نمونه Exception::getFile()
<?php
try {
throw new Exception;
} catch(Exception $e) {
echo $e->getFile();
}
?>
The above example will output something similar to:
/home/bjori/tmp/ex.php
There are no user contributed notes for this page.
