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

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

You can do it
  1. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  2. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  3. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  4. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  5. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  6. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  7. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  8. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  9. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  10. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  11. Which one of the following is the default PHP session name?
  12. A PHP script should start with ___ and end with ___:
  13. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  14. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  15. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  16. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  17. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  18. If session.use_cookie is set to 0, this results in use of..
  19. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  20. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  21. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  22. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  23. Which one of the following format parameter can be used to identify timezone?
  24. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  25. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  26. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  27. If the format is F then which one of the following will be returned?
  28. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  29. Which one of the following function is used to start a session?
  30. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This