PHP

Dario Preglej
Dario Preglej
8,207 Points

set_exception_handler

Why set_exceptin_handler() function dont work when we delete set_error_handler() function and related function exception_error_handler()?

Example:

<?php ini_set('display_errors', 'On');

function exception_handler($e){ echo "Nismo obuhvatili greŇ°ku" .$e->getMessage(); } set_exception_handler("exception_handler");

try{ echo 10/0; } catch (Exception $e){ echo exception_handler($e); }

echo "End of file";