Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 434 Bytes

0112.md

File metadata and controls

20 lines (17 loc) · 434 Bytes

What will be the result of comparing the following two PHP arrays?

$x = array(10,2,4);
$y = array(1 => 20 => 102 => 4);
var_dump($x == $y);
  • A) bool(true)
  • B) NULL
  • C) an error
  • D) bool(false)
Answer

Answer: A