try {
throw new Exception("测试异常1");
} catch (Exception $e) {
echo $e->getMessage();
// die(); // 终止异常
try {
throw new Exception("测试异常2");
} catch (Exception $e) {
echo $e->getMessage();
}
}
php try catch 报出错误异常
最新推荐文章于 2023-10-17 11:43:38 发布