Home

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

A. 4hello4hello4hello4hello4hello…..infinite

B. 5hello5hello5hello5hello5hello…..infinite

C. no output

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 $color1 = red;$color2 = 1;$color3 = greyecho…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  • 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 PHP code? <?php $age = array(Peter=>35, Ben=>37, Joe=>43);print_r(array_change_key_case($age,…
  • Which one of the following is the very first task executed by a session enabled page?
  • Which one of the following function is useful for producing a timestamp based on a given date and time.
  • A PHP script should start with ___ and end with ___:
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  • What is the default time(in seconds) for which session data is considered valid?
  • What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  • What will be the output of the following code? If say date is 22/06/2013. <?php echo Today is .date(F…
  • 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 $i = 5;while (--$i > 0){ $i++;print $i;print…
  • What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  • Say you want to calculate the date 45 days from the present date which one of the following statement…
  • What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • 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 $i = 0;while(++$i || --$i){ print $i;}…
  • 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 code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  • What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  • 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 class myObject { }define('myObject::CONSTANT',…
  • What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  • -->

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