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

0) print $i;} ?> ">What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while ($i --> 0) print…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  • What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0){ $i++;print $i;print…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  • What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  • What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  • What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  • Which one of the following format parameter can be used to identify timezone?
  • 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,…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  • PHP files have a default file extension of..
  • What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  • What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  • What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  • If the format is F then which one of the following will be returned?
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  • What will be the output of the following PHP code ? <?php $i = 0;while ((--$i > ++$i) - 1){ print…
  • What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  • What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  • What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  • What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  • -->

    Please do not use chat terms. Example: avoid using "grt" instead of "great".