Skip to content

Latest commit

History

History
20 lines (17 loc) 路 411 Bytes

File metadata and controls

20 lines (17 loc) 路 411 Bytes

What is the output of the following PHP code?

define('FOO',聽10);
$array聽=聽array(10聽=>聽FOO,"FOO"聽=>聽20);
print$array[$array[FOO]]聽*聽$array["FOO"];
  • A) 200
  • B) 20
  • C) FOO
  • D) 100
Answer

Answer: A