?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$place = array("NYC", "LA", "Paris");
array_pop($place);
$place1 = array("Paris");
$place = array_merge($place, $place1);
print_r($place);
?>
<?php
$place = array("NYC", "LA", "Paris");
array_pop($place);
$place1 = array("Paris");
$place = array_merge($place, $place1);
print_r($place);
?>
Answer & Solution
Correct Answer:
Option
A
array_merge() and array_pop() yields that result.
Join the Discussion
Login to post a comment or share your explanation.
Login[0] => NYC [1] => LA [2] => Paris
true is B