nerdexam
Zend

200-530 · Question #206

Would the following code catch a parse error? try { echo $label } catch (Exception $e) { echo $e->getMessage(); }

The correct answer is B. No. See the full explanation below for the reasoning.

Question

Would the following code catch a parse error? try { echo $label } catch (Exception $e) { echo $e->getMessage(); }

Options

  • AYes
  • BNo

How the community answered

(40 responses)
  • A
    25% (10)
  • B
    75% (30)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice