Home

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

A. $GREETING

B. no output

C. PHP is a scripting language

D. GREETING

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 /*echo Hello world;*/ ?>
  2. Which one of the following function is useful for producing a timestamp based on a given date and time.
  3. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  4. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  5. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  6. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  7. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  8. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  9. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  10. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  11. A PHP script should start with ___ and end with ___:
  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 = 1;echo $color1…
  14. Which function displays the web pages most recent modification date?
  15. How many ways can a session data be stored?
  16. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  17. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  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 $color1 = 1;$color2 = 1;echo $color1 +…
  20. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  21. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  22. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  23. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  24. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  25. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  26. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  27. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  28. If the format is F then which one of the following will be returned?
  29. What is the default time(in seconds) for which session data is considered valid?
  30. Say you want to calculate the date 45 days from the present date which one of the following statement…