1.

What will be the output of the following PHP code?
 <?php $fruits = array ("apple", "mango", "peach", "pear", "orange"); $subset = array_splice ($fruits, 2); print_r ($fruits); ?>  

A. Error
B. Array ( [0] =&gt; apple [1] =&gt; mango [2] =&gt; peach )
C. Array ( [0] =&gt; apple [1] =&gt; mango )
D. Array ( [0] =&gt; pear [1] =&gt; orange )
Answer» D. Array ( [0] =&gt; pear [1] =&gt; orange )


Discussion

No Comment Found