(PHP 5 >= 5.1.0)
Exception::getFile — نام فایل ایجاد کننده استثنا را باز میگرداند
نام فایل ایجاد کننده استثنا را باز میگرداند.
This function has no parameters.
نام فایل ایجاد کننده استثنا را باز میگرداند.
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