Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

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

  1. Array ( [0] => LA [1] => Paris [2] => Paris )
  2. Array ( [0] => NYC [1] => LA [2] => Paris)
  3. Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris )
  4. None of the mentioned

All Answers

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

 (a).Array ( [0] => LA [1] => Paris [2] => Paris )

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

total answers (1)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code ... >>
<< What will be the output of the following PHP code?...