Home

Which one of the following function is used to start a session?

A.

start_session()

B.

session_start()

C.

session_begin()

D.

begin_session()

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

You can do it
  1. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  2. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  3. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  4. What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT, I have a…
  5. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  6. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  7. How many ways can a session data be stored?
  8. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  9. What is the default time(in seconds) for which session data is considered valid?
  10. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  11. Say you want to calculate the date 45 days from the present date which one of the following statement…
  12. What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  13. Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  14. Which function displays the web pages most recent modification date?
  15. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  16. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  17. What will be the output of the following PHP code ? <?php $color = red;echo $color . red ;?>
  18. What will be the output of the following PHP code? <?php $a = array(A, Cat, Dog, A, Dog);print_r(array_count_values($a));?>…
  19. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  20. 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,…
  21. Which one of the following is the default PHP session name?
  22. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  23. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  24. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  25. Which one of the following function is useful for producing a timestamp based on a given date and time.
  26. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  27. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 || ++$i){ print…
  28. What will be the output of the following PHP code ? <?php define('IF', 42);echo IF: , IF;?>
  29. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  30. What will be the output of the following PHP code ? <?php $i = 0;while ($i = 10){ print hi;}print…