1.

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] =&gt; LA [1] =&gt; Paris [2] =&gt; Paris )
B. Array ( [0] =&gt; NYC [1] =&gt; LA [2] =&gt; Paris)
C. Array ( [0] =&gt; NYC [1] =&gt; LA [2] =&gt; Paris [3] =&gt; Paris )
D. None of the mentioned
Answer» B. Array ( [0] =&gt; NYC [1] =&gt; LA [2] =&gt; Paris)


Discussion

No Comment Found