Q:

What will be the output of the following PHP code?

belongs to collection: ARRAYS AND FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code?

<?php
$a = array("a" => "india", "b" => "brazil", "c" => "china");
echo array_shift($a);
echo "<br>"
array_pop($a);
print_r($a);
?>

  1. india Array ( [a] => china )
  2. india
    Array ( [a] => brazil )
  3. china Array ( [a] => india )
  4. china Array ( [a] => brazil )

All Answers

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

 (b).

india
Array ( [a] => brazil )

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

total answers (1)

ARRAYS AND FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< What will be the output of the following PHP code?...