Home
Subscribe TechModgy to learn about new technologies!

What will be the output of the following PHP code?
 <?php  $a1 = array(red, green);
$a2 = array(blue, yellow);
print_r(array_merge($a1, $a2));
?>

A.

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

B.

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

C.

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

D.

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

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • Which function displays the web pages most recent modification date?
  • What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  • Which one of the following function is useful for producing a timestamp based on a given date and time.
  • 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 define(NEW_GOOD_NAME_CONSTANT, I have a…
  • What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  • Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  • 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,…
  • Which one of the following is the very first task executed by a session enabled page?
  • If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  • 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('IF', 42);echo IF: , IF;?>
  • How many ways can a session data be stored?
  • If the format is F then which one of the following will be returned?
  • 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 $i = ;while ($i = 10){ print hi;}print…
  • What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  • 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 $color1 = red;$color2 = red;echo $color1…
  • What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  • -->

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