Home

What will be the output of the following PHP code?
     <?php      echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
?>

A. TRUE

B. FALSE

C. Valid

D. Invalid

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 $cars = array(Volvo, BMW, Toyota);echo I…
  2. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  3. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  4. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  5. What is the default time(in seconds) for which session data is considered valid?
  6. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  7. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  8. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  9. Which one of the following is the very first task executed by a session enabled page?
  10. How many ways can a session data be stored?
  11. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  12. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  13. The date() function returns ___ representation of the current date and/or time.
  14. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  15. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  16. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  17. Which one of the following function is used to start a session?
  18. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  19. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  20. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  21. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  22. Which function displays the web pages most recent modification date?
  23. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  24. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  25. Which one of the following is the default PHP session name?
  26. Which one of the following function is useful for producing a timestamp based on a given date and time.
  27. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  28. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  29. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  30. Which directive determines how the session information will be stored?