Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
$a = array("red", "green", "blue");
array_pop($a);
print_r($a);
?>

  1. Array ( [0] => red [1] => green )
  2. Array ( [0] => green [1] => blue )
  3. Array ( [0] => red [1] => blue )
  4. Array ( [0] => blue [1] => blue )

All Answers

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

 (a).Array ( [0] => red [1] => green )

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now