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); ?>
A.Array ( [0] => LA [1] => Paris [2] => Paris )
B.Array ( [0] => NYC [1] => LA [2] => Paris)
C.Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris )
D.None of the mentioned
Answers
Answered by
1
hey mate........the answer is
A.Array ( [0] => LA [1] => Paris [2] => Paris )
A.Array ( [0] => LA [1] => Paris [2] => Paris )
Answered by
1
A.Array ( [0] => LA [1] => Paris [2] => Paris
Similar questions
Biology,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago
History,
1 year ago
Math,
1 year ago