Home

What will be the output of the following PHP code?
 <?php  $a = array(A, Cat, Dog, A, Dog);
print_r(array_count_values($a));
?>

A.

Array ( [A] => 2 [Cat] => 1 [Dog] => 2 )

B.

Array ( [A] => 2 [Cat] => 2 [Dog] => 1 )

C.

Array ( [A] => 1 [Cat] => 1 [Dog] => 2 )

D.

Array ( [A] => 2 [Cat] => 1 [Dog] => 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 $i = 5;while (--$i > 0 && ++$i){ print…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  • 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 $color1 = red;$color2 = green;echo $color1.$color2;?>…
  • What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  • What will be the output of the following PHP code? If say date is 22/06/2013. <?php printf( date(t)…
  • If the format is F then which one of the following will be returned?
  • What is the default time(in seconds) for which session data is considered valid?
  • Which one of the following format parameter can be used to identify timezone?
  • What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  • Which function displays the web pages most recent modification date?
  • Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  • 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,…
  • The date() function returns ___ representation of the current date and/or time.
  • What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  • How many ways can a session data be stored?
  • 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 $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  • Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  • -->

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