Predict the output of the following code snippet.
<?php
function sample() {
try {
throw new Exception(‘Hello World’);
} catch (Exception $e) {
return ‘catch’;
} finally {
return ‘finally’;
}
}
echo sample();
?>
Options
- Hello World
- catch
- finally
- None of these