一个try-catch语句应该具有如下格式:
try {
statements;
} catch (ExceptionClass e) {
statements;
}
一个try-catch语句后面也可能跟着一个finally语句,不论try代码块是否顺利执行完,它都会被执行。
try {
statements;
} catch (ExceptionClass e) {
statements;
} finally {
statements;
}
PHP 编码规范(17)
来源:ChinaZ.com
作者:未知
时间:2006-05-12
Tag:
点击:
6.9 try...catch语句
0
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论

