Home
Subscribe TechModgy to learn about new technologies!

What will be the output of the following PHP code? If say date is 22/06/2013.
     <?php      printf( date(t) )     ?> 

A. 30

B. 22

C. JUNE

D. 2013

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? If say date is 22/06/2013. <?php printf( date(t)…
  • What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  • 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 $cars = array(Volvo, BMW, Toyota);echo I…
  • What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  • What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  • 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 $color1 = red;$color2 = red;echo $color1…
  • What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  • What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  • 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 $color1 = red;$color2 = green;echo $color1.$color2;?>…
  • 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 = 5;while (--$i > 0 && ++$i){ print…
  • Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  • Say you want to calculate the date 45 days from the present date which one of the following statement…
  • 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(GREETING, PHP is a scripting language,…
  • 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) - 1){ 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 $color = red;$color = green;echo $color;?>…
  • What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  • Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  • -->

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