2016-08-05 16 views

答えて

0

あなたは、catchブロックでこれを行うことができます。

try { 
    foo(); 
} catch (Exception $e) { 
    error_log("Caught $e"); 
} 

または例外ハンドラで:

set_exception_handler(function($exception) { 
    error_log($exception); 
    error_page("Something went wrong!"); 
}); 
関連する問題