Home
Learn about new technologies!

What is the correct answer?

4

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] => red [1] => green )

B.

Array ( [0] => green [1] => blue )

C.

Array ( [0] => red [1] => blue )

D.

Array ( [0] => blue [1] => blue )

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print… -->