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 $color1 = 1;$color2 = 1;echo $color1 +…
  2. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  3. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  4. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  5. What is the default number of seconds that cached session pages are made available before the new pages…
  6. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  7. 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,…
  8. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  9. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  10. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  11. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  12. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  13. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  14. What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  15. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  16. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  17. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  18. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  19. If the format is F then which one of the following will be returned?
  20. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  21. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  22. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  23. What is the default time(in seconds) for which session data is considered valid?
  24. Which one of the following format parameter can be used to identify timezone?
  25. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  26. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  27. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  28. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  29. How many ways can a session data be stored?
  30. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This