Home
Subscribe TechModgy to learn about new technologies!

What will be the output of the following PHP code?
 <?php  $age = array(Peter=>35, Ben=>37, Joe=>43);
print_r(array_change_key_case($age, CASE_UPPER));
?>

A.

Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )

B.

Array ( [peter] => 35 [ben] => 37 [joe] => 43 )

C.

Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 )

D.

Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 )

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • A PHP script should start with ___ and end with ___:
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  • Which one of the following function is useful for producing a timestamp based on a given date and time.
  • What is the default time(in seconds) for which session data is considered valid?
  • What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  • What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  • Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  • If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  • What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • How many ways can a session data be stored?
  • Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  • What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  • What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  • -->

    Please do not use chat terms. Example: avoid using "grt" instead of "great".