时间:2021-07-01 10:21:17 帮助过:6人阅读
< ?php
try {
$mgr = new CommandManager();
$cmd = $mgr->getCommandObject("realcommand");
$cmd->execute();
} catch (Exception $e) {
print $e->getMessage();
exit();
}相关推荐:
PHP中try{}和catch{}的具体使用方法
以上就是PHP中try{}和catch{}的用法详解的详细内容,更多请关注Gxl网其它相关文章!