Home

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

A. 4hello4hello4hello4hello4hello…..infinite

B. 5hello5hello5hello5hello5hello…..infinite

C. no output

D. error

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

You can do it
  1. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  2. Which one of the following function is used to start a session?
  3. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  4. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  5. What is the default number of seconds that cached session pages are made available before the new pages…
  6. Say you want to calculate the date 45 days from the present date which one of the following statement…
  7. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  8. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  9. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  10. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  11. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  12. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  13. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  14. A PHP script should start with ___ and end with ___:
  15. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  16. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  17. Which one of the following function is useful for producing a timestamp based on a given date and time.
  18. If the format is F then which one of the following will be returned?
  19. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  20. What is the default time(in seconds) for which session data is considered valid?
  21. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  22. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  23. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  24. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  25. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  26. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  27. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  28. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  29. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  30. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…