Q. What is the result of the following PHP code?
Code:
<?php
$arr1 = array("A"=>"Alex", "B"=>"Bob", "E"=>"Emily");
$arr2 = array("L"=>"Alex", "O"=>"Bob");
$result = array_intersect($arr1, $arr2);
print_r($result);
?>
β
Correct Answer: (A)
Array([A] => Alex, [B] => Bob)