I don't understand why php code dosen't go to catch section? instead it's showing warning : Warning: Division by zero in C:\xampp\htdocs\test\test.php on line 3 INF
<?php
try{
echo 5/0;
}catch(Exception $e){
echo "Divide by 0 not allow.";
}
?>
Can anyone help how to manage this? There is so many question answer regarding this but can't find any perfect solution as c#, Java support try catch handling why php not following same standard?