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. no output

D. error

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 = 0;while (++$i && --$i){ print $i;}…
  2. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  3. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  4. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  5. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  6. Which one of the following is the very first task executed by a session enabled page?
  7. If the format is F then which one of the following will be returned?
  8. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  9. What is the default number of seconds that cached session pages are made available before the new pages…
  10. Which directive determines how the session information will be stored?
  11. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  12. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  13. Which one of the following format parameter can be used to identify timezone?
  14. What is the default time(in seconds) for which session data is considered valid?
  15. PHP files have a default file extension of..
  16. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  17. 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,…
  18. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  19. Which one of the following is the default PHP session name?
  20. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  21. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  22. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  23. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  24. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  25. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  26. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  27. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  28. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  29. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  30. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…