Home

What will be the output of the following PHP code ?
 <?php  $color1 = red;
$color2 = green;
echo $color1 . $color2;
?>

A. red

B. green

C. red green

D. redgreen

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 $color = red;echo $color . red ;?>
  2. If the format is F then which one of the following will be returned?
  3. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  4. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  5. Which one of the following function is used to start a session?
  6. PHP files have a default file extension of..
  7. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  8. What is the default time(in seconds) for which session data is considered valid?
  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 = 2;while (++$i){ while ($i --> 0) print…
  11. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  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 $cars = array(Volvo, BMW, Toyota, Honda,…
  14. What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  15. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  16. How many ways can a session data be stored?
  17. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  18. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  19. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  20. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  21. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  22. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  23. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  24. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  25. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  26. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  27. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  28. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  29. Which one of the following function is useful for producing a timestamp based on a given date and time.
  30. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…