Home

A PHP script should start with ___ and end with ___:


A.

< php >


B.

< ? php ?>


C.

<?php ?>


D.

<% %>


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

You can do it
  1. PHP files have a default file extension of..
  2. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  3. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  4. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  5. Which one of the following is the default PHP session name?
  6. The date() function returns ___ representation of the current date and/or time.
  7. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  8. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  9. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  10. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  11. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  12. How many ways can a session data be stored?
  13. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  14. Which function displays the web pages most recent modification date?
  15. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  16. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  17. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  18. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  19. Which one of the following function is useful for producing a timestamp based on a given date and time.
  20. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  21. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  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 $cars = array(Volvo, BMW, Toyota, Honda,…
  24. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  25. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  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 function is used to start a session?
  28. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  29. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  30. Which directive determines how the session information will be stored?