Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 535 Bytes

0009.md

File metadata and controls

24 lines (20 loc) · 535 Bytes

Which of the below provided options is correct regarding the below code?

$a = array(1, 2, 3);
$b = array(1=> 2, 2 => 3, 0 => 1);
$c = array('a' => 1,'b' => 2,'c' => 3);
var_dump($a == $b);
var_dump($a === $b);
var_dump($a == $c);
  • A) true false false
  • B) false true true
  • C) true true false
  • D) true false true
Answer

Answer: A