Home

What will be the output of the following PHP code?
 <?php  $cars = array(Volvo, BMW, Toyota);
echo I like . $cars[0] . , . $cars[1] . and . $cars[2] . .;
?>

A. I like Volvo BMW and Toyota.

B. I like Volvo, BMW and Toyota)

C. I like Volvo, BMW and Toyota.

D. I like. Volvo.,. BMW. and. Toyota)

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? If say date is 22/06/2013. <?php printf( date(t)…
  2. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  3. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  4. Which one of the following is the very first task executed by a session enabled page?
  5. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  6. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  7. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  8. What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  9. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  10. 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,…
  11. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  12. What will be the output of the following PHP code ? <?php $i = 0;while (++$i && --$i){ print $i;}…
  13. Which one of the following is the default PHP session name?
  14. Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  15. The date() function returns ___ representation of the current date and/or time.
  16. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  17. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  18. Which one of the following function is used to start a session?
  19. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  20. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  21. What is the default time(in seconds) for which session data is considered valid?
  22. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  23. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  24. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  25. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  26. Say you want to calculate the date 45 days from the present date which one of the following statement…
  27. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  28. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  29. What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  30. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…