主页
PHP
PHP Exception getFile() 方法
tryphp_exception_getfile
运行 ❯
×
更改方向
保存代码
更改主题
<?php try { throw new Exception("An error occurred"); } catch(Exception $e) { echo "Error in this file: " . $e->getFile(); } ?>