Home

PHP files have a default file extension of..


A.

.html


B.

.xml


C.

.php


D.

.ph


E.

.asp


F.

.jsp


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. 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;$color = green;echo $color;?>…
  4. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  5. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  6. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  7. If session.use_cookie is set to 0, this results in use of..
  8. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  9. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  10. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  11. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  12. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  13. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  14. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  15. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  16. Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  17. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  18. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  19. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  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(NEW_GOOD_NAME_CONSTANT, I have a…
  22. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  23. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  24. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  25. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  26. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  27. What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  28. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  29. How many ways can a session data be stored?
  30. What is the default time(in seconds) for which session data is considered valid?