Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 549 Bytes

0789.md

File metadata and controls

15 lines (12 loc) · 549 Bytes

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