< ?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网其它相关文章!