Q:

What will be the output of the following PHP code ?

0

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));
?>

  1. Array ( [1] => Mumbai [0] => Beijing )
  2. Array ( [0] => NYC [1] => London )
  3. Array ( [1] => NYC [0] => London )
  4. Array ( [0] => Mumbai [1] => Beijing )

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).Array ( [0] => Mumbai [1] => Beijing )

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now