码迷,mamicode.com
首页 > 其他好文 > 详细

trycatche

时间:2018-04-13 13:23:16      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:sts   ade   aaa   throw   set   htm   exists   exist   else   

<?php
header("Content-type: text/html; charset=utf-8");

try{
$aaa = 0;
if ($aaa == 9) {
echo 9999;
} else {
throw new Exception(‘file is not exists‘);
}
} catch (Exception $e) {
print $e->getMessage();
exit();
}
?>

trycatche

标签:sts   ade   aaa   throw   set   htm   exists   exist   else   

原文地址:https://www.cnblogs.com/yszr/p/8819553.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!