MCQs > IT & Programming > PHP 5 > class Example_Exp extends Exception {} class Check { public function checking() { try { try { throw new Example_Exp( } catch (Example_Exp $ex) { throw $ex; } } catch (Exception $ex) { var_dump($ex->getMessage()); } } } $bar = new check; $bar->checking(); ?>

PHP 5 MCQs

What will be the output of the following PHP 7.1 code snippet.

class Example_Exp extends Exception {}

class Check {

public function checking() {

try {

try {

throw new Example_Exp( } catch (Example_Exp $ex)

{ throw $ex;

}

} catch (Exception $ex) {

var_dump($ex->getMessage());

}

}

}

$bar = new check;

$bar->checking();

?>

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it