1.

What will be the output of the following PHP code?
 <?php $a = array("red", "green", "blue"); array_pop($a); print_r($a); ?>  

A. Array ( [0] =&gt; red [1] =&gt; green )
B. Array ( [0] =&gt; green [1] =&gt; blue )
C. Array ( [0] =&gt; red [1] =&gt; blue )
D. Array ( [0] =&gt; blue [1] =&gt; blue )
Answer» B. Array ( [0] =&gt; green [1] =&gt; blue )


Discussion

No Comment Found