Home

What will be the output of the following PHP code ?
 <?php  define('GOOD_OCTAL', 0700);
define('BAD_OCTAL', 0600);
print GOOD_OCTAL;
print '
';
print BAD_OCTAL;
?>

A. 448
384

B. 0700
0800

C. ERROR

D. No output

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 define(GREETING, PHP is a scripting language);echo…
  2. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  3. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  4. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  5. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  6. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  7. Which one of the following is the very first task executed by a session enabled page?
  8. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  9. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  10. A PHP script should start with ___ and end with ___:
  11. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  12. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  13. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  14. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  15. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  16. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  17. If the format is F then which one of the following will be returned?
  18. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  19. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…
  20. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  21. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  22. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  23. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  24. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  25. What is the default number of seconds that cached session pages are made available before the new pages…
  26. What is the default time(in seconds) for which session data is considered valid?
  27. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  28. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  29. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  30. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…