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)- A12% (2)
- B76% (13)
- C12% (2)
Community Discussion
No community discussion yet for this question.