nerdexam
Zend

200-530 · Question #39000

What is the output of the following code? $a = 'a'; $b = 'b'; echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

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

Question

What is the output of the following code? $a = 'a'; $b = 'b'; echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

Options

  • Aabc
  • Bcd
  • C0d

How the community answered

(17 responses)
  • A
    12% (2)
  • B
    76% (13)
  • C
    12% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice