Home

What will be the output of the following PHP code ?
 <?php  /*echo Hello world;
*/ ?>

A. Hello world

B. Nothing

C. Error

D.

/* Hello world */

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • Which directive determines how the session information will be stored?
  • 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,…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  • PHP files have a default file extension 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 define(__LINE__, PHP is a scripting language);echo…
  • What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  • What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  • What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  • The date() function returns ___ representation of the current date and/or time.
  • What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  • 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 $age = array(Peter=>35, Ben=>37, Joe=>43);print_r(array_change_key_case($age,…
  • 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 $a1 = array(red, green);$a2 = array(blue,…
  • 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 define('GREETING_TEST', 'PHP is a scripting…
  • Which function displays the web pages most recent modification date?
  • 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 $i;print…
  • What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  • Which one of the following format parameter can be used to identify timezone?
  • 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 $cars = array(Volvo, BMW, Toyota, Honda,…
  • 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 echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  • 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".