<<< Previous question <<< Question ID#0789.md >>> Next question >>>
Give the following expression: "$$foo['bar']". Which of the statements below are true?
- A) In PHP 5, it will be evaluated as ${$foo['bar']}
- B) In PHP 7, it will be evaluated as {$$foo}['bar']
- C) In is evaluated as {$$foo}['bar'] in both PHP 5 and PHP 7
- D) Give that "$foo" is an array , such expressions are possible only in PHP 7
Answer
Answer: A, B