A

Admin • 832.27K Points
Coach

Q. What is the result of the following PHP code?

Code:
<?php
$arr1 = array("A", "B");
$arr2 = array("C", "D");
$arr3 = array_merge($arr1, $arr2);
print_r($arr3);
?>
  • (A) Array([1] => A, [2] => B, [3] => C, [4] => D)
  • (B) Array([0] => A, [1] => B, [2] => C, [3] => D)
  • (C) Array([2] => C, [1] => B, [0] => A, [3] => D)
  • (D) None of the above
  • Correct Answer - Option(B)
  • Views: 19
  • 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.