PHP入門之異常處理、數據庫操做、以後方向制定

1,異常處理php 1,PHP異常處理機制和Java同樣mysql 案例: // 常見結構; return 在 finally執行完成才執行 try { echo "try" . "\n"; throw new Exception('wrong'); // return; } catch (Exception $ex) { echo "catch" . "\n"; $msg = 'Error:'
相關文章
相關標籤/搜索