-
What will be the output of the following PHP code ?
<?php
$Emp1 = array("Ajit", "Rahul");
$Emp2 = array("Ats", "Aju");
print_r(array_replace($Emp1, $Emp2));
?>
-
-
Array
(
[0] => Ats
) - Nothing
-
Array
(
[0] => Ats
[1] => Aju
) - Error
- None of these
-
Correct Option: A
The array_replace() function replaces the values of the first array with the values from following arrays