Home
Subscribe TechModgy to learn about new technologies!

What will be the output of the following PHP code ?
 <?php  define('IF', 42);
echo IF: , IF;
?>

A. IF:42

B. No output

C. IF:

D. ERROR

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  • 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 $color1 = red;$color2 = green;echo $color1.$color2;?>…
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  • 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 $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • 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 $color = red;echo $color . red ;?>
  • 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 /*echo Hello world;*/ ?>
  • 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…
  • To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  • What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  • How many ways can a session data be stored?
  • What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  • What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  • 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? If say date is 22/06/2013. <?php printf( date(t)…
  • 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){ print $i;}…
  • Which directive determines how the session information will be stored?
  • What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  • -->

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