Home

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

A. hello

B. infinite loop

C. hihello

D. error

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

You can do it
  1. Which directive determines how the session information will be stored?
  2. Which one of the following function is useful for producing a timestamp based on a given date and time.
  3. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  4. Which one of the following is the very first task executed by a session enabled page?
  5. What is the default number of seconds that cached session pages are made available before the new pages…
  6. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  7. A PHP script should start with ___ and end with ___:
  8. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  9. 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,…
  10. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  11. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  12. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  13. What is the default time(in seconds) for which session data is considered valid?
  14. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  15. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  16. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  17. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  18. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  19. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  20. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  21. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  22. Which function displays the web pages most recent modification date?
  23. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  24. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ 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? If say date is 22/06/2013. <?php printf( date(t)…
  27. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  28. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  29. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  30. The date() function returns ___ representation of the current date and/or time.