What will be the output of the following PHP code ?
<?php
$city_west = array("NYC", "London");
$city_east = array("Mumbai", "Beijing");
print_r(array_replace($city_west, $city_east));
?>
- Array ( [1] => Mumbai [0] => Beijing )
- Array ( [0] => NYC [1] => London )
- Array ( [1] => NYC [0] => London )
- Array ( [0] => Mumbai [1] => Beijing )
(d).Array ( [0] => Mumbai [1] => Beijing )
need an explanation for this answer? contact us directly to get an explanation for this answer