Home
Subscribe TechModgy to learn about new technologies!

What will be the output of the following PHP code ?
 <?php  $color1 = red;
$color2 = 1;
echo $color1 + $color2;
?>

A. red1

B. red 1

C. 0

D. 1

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • If session.use_cookie is set to 0, this results in use of..
  • What is the default number of seconds that cached session pages are made available before the new pages…
  • 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 code? If say date is 22/06/2013. <?php echo Today is .date(F…
  • Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  • Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  • Which one of the following is the very first task executed by a session enabled page?
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  • 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 = 0;while(++$i || --$i){ print $i;}…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  • Which directive determines how the session information will be stored?
  • What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  • 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 $i = 5;while (--$i > 0){ $i++;print $i;print…
  • What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  • Which one of the following is the default PHP session name?
  • -->

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