On [
us3.php.net...] it says:
"When an exception is thrown, code following the statement will not be executed"
Does this mean the code in the "try" statement or in the function throwing the Exception? If it applies to the throwing function, for the example they give below, is it necessary to put the return statement as an "else" or could you leave the "else" out if throwing the Exception would halt execution anyway?
function inverse($x) {
if (!$x) {
throw new Exception('Division by zero.');
}
else return 1/$x;
}