Home

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

A. 5

B. 555555555…infinitely

C. 54321

D. error

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 $a1 = array(red, green);$a2 = array(blue,…
  3. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  4. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  5. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  6. A PHP script should start with ___ and end with ___:
  7. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  8. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  9. The date() function returns ___ representation of the current date and/or time.
  10. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  11. Which one of the following function is useful for producing a timestamp based on a given date and time.
  12. Which one of the following function is used to start a session?
  13. Which function displays the web pages most recent modification date?
  14. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  15. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  16. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  17. If session.use_cookie is set to 0, this results in use of..
  18. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  19. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  20. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  21. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  22. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  23. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  24. Say you want to calculate the date 45 days from the present date which one of the following statement…
  25. What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  26. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  27. Which one of the following is the very first task executed by a session enabled page?
  28. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  29. What is the default number of seconds that cached session pages are made available before the new pages…
  30. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…