A

Admin • 828.03K Points
Coach

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

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