Home

What will be the output of the following PHP code ?
 <?php  /*echo Hello world;
*/ ?>

A. Hello world

B. Nothing

C. Error

D.

/* Hello world */

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 = 5;while (--$i > 0 || ++$i){ print…
  2. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  3. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  4. How many ways can a session data be stored?
  5. If session.use_cookie is set to 0, this results in use of..
  6. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  7. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  8. A PHP script should start with ___ and end with ___:
  9. Which one of the following format parameter can be used to identify timezone?
  10. What is the default number of seconds that cached session pages are made available before the new pages…
  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 code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  13. 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,…
  14. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  15. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  16. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  17. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  18. Which directive determines how the session information will be stored?
  19. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  20. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  21. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  22. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  23. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  24. What is the default time(in seconds) for which session data is considered valid?
  25. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  26. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  27. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  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? If say date is 22/06/2013. <?php printf( date(t)…
  30. Which one of the following function is useful for producing a timestamp based on a given date and time.