Home

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

A. red red

B. red

C. error

D. nothing

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 $color1 = red;$color2 = 1;echo $color1…
  2. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  3. Which one of the following function is used to start a session?
  4. The date() function returns ___ representation of the current date and/or time.
  5. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  6. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  7. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  8. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  9. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  10. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  11. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  12. Which one of the following format parameter can be used to identify timezone?
  13. Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  14. Which one of the following is the very first task executed by a session enabled page?
  15. What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  16. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  17. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  18. If session.use_cookie is set to 0, this results in use of..
  19. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  20. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  21. What is the default number of seconds that cached session pages are made available before the new pages…
  22. What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  23. What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  24. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  25. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  26. PHP files have a default file extension of..
  27. What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  28. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  29. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  30. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…