trycatche

<?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();
}
?>

posted @ 2018-04-13 12:19  御世制人  阅读(176)  评论(0编辑  收藏  举报