Home

Say you want to calculate the date 45 days from the present date which one of the following statement will you use?

A.

totime(+45)

B.

totime(+45 days)

C.

strtotime(+45 days)

D.

strtotime(-45 days)

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 $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  2. The date() function returns ___ representation of the current date and/or time.
  3. Say you want to calculate the date 45 days from the present date which one of the following statement…
  4. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  5. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  6. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  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 define('GREETING_TEST', 'PHP is a scripting…
  9. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  10. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  11. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  12. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  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 $i = 5;while (--$i > 0 || ++$i){ print…
  15. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  16. Which one of the following format parameter can be used to identify timezone?
  17. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  18. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  19. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  20. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  21. How many ways can a session data be stored?
  22. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  23. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  24. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  25. If the format is F then which one of the following will be returned?
  26. 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,…
  27. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  28. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  29. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  30. Which one of the following is the very first task executed by a session enabled page?