<<< Previous question <<< Question ID#0774.md >>> Next question >>>
What is the result of the following code?
$a = null;
$b = 1;
$c = 'c';
echo $a ?? '!a';
echo $b ?? '!b';
echo $c ?? '!c';
echo $d ?? '!d';
- A) !a1c!d
- B) A warning saying that "$d" is not declared;
- C) 1c
- D) A parse error because the "??" operator does not exist in PHP
Answer
Answer: A