Home

To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?

A.

$date = Date(22 JUNE 2013)

B.

$date = new Date(JUNE 22 2013)

C.

$date = DateTime(22 JUNE 2013)

D.

$date = new DateTime(22 JUNE 2013)

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

You can do it
  1. What is the default time(in seconds) for which session data is considered valid?
  2. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  3. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  4. 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,…
  5. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  6. Which one of the following format parameter can be used to identify timezone?
  7. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  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 $i = 0;while ((--$i > ++$i) - 1){ print…
  10. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  11. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  12. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  13. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  14. If the format is F then which one of the following will be returned?
  15. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  16. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  17. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  18. The date() function returns ___ representation of the current date and/or time.
  19. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  20. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  21. What is the default number of seconds that cached session pages are made available before the new pages…
  22. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  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 $color1 = red;$color2 = green;echo $color1…
  25. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  26. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  27. Which one of the following is the very first task executed by a session enabled page?
  28. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  29. Which one of the following is the default PHP session name?
  30. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>