<<< Previous question <<< Question ID#0773.md >>> Next question >>>
What is the result of the following code?
<?= (function(){ return [$x, $x + 1, $x + 2];})(4)[2];
- A) The "2" value together with PHP noticw saying that it does not recognize the $x variable;
- B) A PHP warning saying that you need to store the result in a variable before displayng it;
- C) 6
- D) A parse error;
Answer
Answer: A