Home

What will be the output of the following PHP code ?
 <?php  $i = 0;
while ($i = 10){ print hi;
}print hello;
?>

A. hello

B. infinite loop

C. hihello

D. error

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 echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  • 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 $color1 = 1;$color2 = 1;echo $color1 +…
  • What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  • What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  • Say you want to calculate the date 45 days from the present date which one of the following statement…
  • If session.use_cookie is set to 0, this results in use of..
  • What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  • The date() function returns ___ representation of the current date and/or time.
  • What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  • 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 $cars = array(Volvo, BMW, Toyota, Honda,…
  • Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  • 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 $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 = 10){ print hi;}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 $color = red;$color = green;echo $color;?>…
  • Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  • What will be the output of the following PHP code ? <?php class myObject { }define('myObject::CONSTANT',…
  • What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  • -->

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