A

Admin • 832.27K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category PHP
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.