Home

What will be the output of the following PHP code ?
 <?php  define(GREETING, PHP is a scripting language, true);
echo GREETING;
echo
echo GREETING;
?>

A. PHP is a scripting language

B. GREETING
GREEtING

C. GREETING

D. PHP is a scripting language
PHP is a scripting language

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 = ;while ($i = 10){ print hi;}print…
  2. Which one of the following is the default PHP session name?
  3. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  4. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  5. Which function displays the web pages most recent modification date?
  6. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  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 ? <?php $color1 = red;$color2 = 1;echo $color1…
  9. PHP files have a default file extension of..
  10. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  11. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  12. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  13. 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,…
  14. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  15. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  16. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  17. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  18. What is the default time(in seconds) for which session data is considered valid?
  19. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  20. Which one of the following function is used to start a session?
  21. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  22. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  23. What is the default number of seconds that cached session pages are made available before the new pages…
  24. Say you want to calculate the date 45 days from the present date which one of the following statement…
  25. A PHP script should start with ___ and end with ___:
  26. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  27. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  28. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  29. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  30. If the format is F then which one of the following will be returned?