Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDario Preglej
9,771 Pointsset_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";