Home

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

A. red1

B. red 1

C. 0

D. 1

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 = 1;$color2 = 1;echo $color1 +…
  • If the format is F then which one of the following will be returned?
  • Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  • Which of the following is/are a PHP code editor?i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT
  • What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  • What will be the output of the following PHP code ? <?php $color = red;$color = green;echo $color;?>…
  • To create an object and set the date to JUNE 22, 2013, which one of the following statement should be…
  • 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 $age = array(Peter=>35, Ben=>37, Joe=>43);print_r(array_change_key_case($age,…
  • Which function displays the web pages most recent modification date?
  • Say you want to calculate the date 45 days from the present date which one of the following statement…
  • If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  • 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 $fname = array(Peter, Ben, Joe);$age = array(35,…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  • -->

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