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"=>"red", "b"=>"green", "c"=>"blue");
echo array_shift($a);
print_r ($a);
?>

  1. green
  2. red
  3. blue
  4. none of the mentioned

All Answers

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

(b).red

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?...