PHP Arrays
What will be the output of the following PHP code?
$a = array("red", "green", "blue");
array_pop($a);
print_r($a);

Array ( [0] => green [1] => blue )
Array ( [0] => red [1] => blue )
Array ( [0] => red [1] => green )
Array ( [0] => blue [1] => blue )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code ?
$city_west = array("NYC", "London");
$city_east = array("Mumbai", "Beijing");
print_r(array_replace($city_west, $city_east));

Array ( [0] => NYC [1] => London )
Array ( [1] => Mumbai [0] => Beijing )
Array ( [0] => Mumbai [1] => Beijing )
Array ( [1] => NYC [0] => London )

ANSWER DOWNLOAD EXAMIANS APP