πŸ“Š PHP
Q. What is the result of the following PHP code?
Code:
<?php

    $a = array("A","B","C","D","A");

    $b = array("A","E","F","D","A");

    $c = array_combine($a, $b);

    print_r($c);

?>
  • (A) Array([A] => A, [B] => E, [C] => F, [D] => D, [A] => A)
  • (B) Array([A] => A, [B] => E, [C] => F, [D] => D)
  • (C) Array([B] => E, [C] => F)
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Array([A] => A, [B] => E, [C] => F, [D] => D)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
188
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sandeep
Publisher
πŸ“ˆ
82%
Success Rate