Exception::getFile
Exception::getFile
Gets the file in which the exception was created
string **Exception::getFile**
Get the name of the file in which the exception was created.
Returns the filename in which the exception was created.
Voorbeeld: example
<?php
try {
throw new Exception;
} catch(Exception $e) {
echo $e->getFile();
}
?>
/home/bjori/tmp/ex.php
Throwable::getFile