Home

What will be the output of the following PHP code ?
 <?php  define('IF', 42);
echo IF: , IF;
?>

A. IF:42

B. No output

C. IF:

D. ERROR

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 $i = 2;while (++$i){ while ($i --> 0) print…
  2. What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  3. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  4. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  5. Which directive determines how the session information will be stored?
  6. PHP files have a default file extension of..
  7. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  8. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  9. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  10. Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  11. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  12. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  13. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  14. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  15. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  16. The date() function returns ___ representation of the current date and/or time.
  17. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  18. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  19. Which function displays the web pages most recent modification date?
  20. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  21. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  22. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  23. 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,…
  24. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  25. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  26. Which one of the following is the very first task executed by a session enabled page?
  27. If session.use_cookie is set to 0, this results in use of..
  28. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  29. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  30. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…