πŸ“Š PHP
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);
?>
  • (A) Array([A] => Alex, [B] => Bob)
  • (B) Array([L] => Alex, [O] => Bob)
  • (C) Array([E] => Emily)
  • (D) Array()
πŸ’¬ Discuss
βœ… Correct Answer: (A) Array([A] => Alex, [B] => Bob)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
152
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
89%
Success Rate