I have this code:
function divide($a,$b){
try{
if($b==0){
throw new Exception("second variable can not be 0");
}
return $a/$b;
}
catch(Exception $e){
echo $e->getMessage();
}
}
echo divide(20,0);
echo "done";
It throws an exception when the second parameter is 0. How can I stop done from printing?