getfile
Error::getFile
Gets the file in which the error occurred
ENTITY
final
public
string
Error::getFile
Get the name of the file the error occurred.
ENTITY ENTITY
ENTITY
Returns the filename in which the error occurred.
ENTITY
Error::getFile example
<?php
try {
throw new Error;
} catch(Error $e) {
echo $e->getFile();
}
?>
ENTITY
/home/bjori/tmp/ex.php
ENTITY
Throwable::getFile
这篇文档对你有帮助吗?
谢谢你的反馈!