php编码规范(17)

6.9 try…catch语句

一个try-catch语句应该具有如下格式:try {  statements;} catch (exceptionclass e) {  statements;}一个try-catch语句后面也可能跟着一个finally语句,不论try代码块是否顺利执行完,它都会被执行。try {  statements;} catch (exceptionclass e) {  statements;} finally {  statements;}

http://www.bkjia.com/phpjc/532587.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/532587.htmltecharticle6.9 try…catch语句 一个try-catch语句应该具有如下格式: try { statements; } catch (exceptionclass e) { statements; } 一个try-catch语句后面也可能跟着一个…

Posted in 未分类