Home

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

A. 1234567891011121314….infinitely

B. 01234567891011121314…infinitely

C. 1

D. 0

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

You can do it
  1. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  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 define('GREETING_TEST', 'PHP is a scripting…
  4. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  5. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  6. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  7. A PHP script should start with ___ and end with ___:
  8. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  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 $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  11. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  12. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  13. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  14. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  15. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  16. Which one of the following is the default PHP session name?
  17. Which one of the following format parameter can be used to identify timezone?
  18. Which function displays the web pages most recent modification date?
  19. What is the default time(in seconds) for which session data is considered valid?
  20. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  21. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  22. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  23. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  24. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  25. What is the default number of seconds that cached session pages are made available before the new pages…
  26. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  27. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  28. Which directive determines how the session information will be stored?
  29. Which one of the following function is used to start a session?
  30. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…