Home

What will be the output of the following PHP code ?
 <?php  $i = 2;
while (++$i){ while (--$i > 0) print $i;
} ?>

A. 210

B. 10

C. no output

D. infinite loop

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • 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 class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  • 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 define('IF', 42);echo IF: , IF;?>
  • 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 define(GREETING, PHP is a scripting language,…
  • 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 $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  • Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  • Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  • 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 = 0;while (++$i && --$i){ print $i;}…
  • Which one of the following is the very first task executed by a session enabled page?
  • Which one of the following is the default PHP session name?
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  • If session.use_cookie is set to 0, this results in use of..
  • What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  • The date() function returns ___ representation of the current date and/or time.
  • What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  • -->

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