Home
Subscribe TechModgy to learn about new technologies!

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

A.

start_session()

B.

session_start()

C.

session_begin()

D.

begin_session()

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 code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  • 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 $i = 0;while (++$i && --$i){ print $i;}…
  • Which one of the following is the default PHP session name?
  • Which directive determines how the session information will be stored?
  • What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  • Which one of the following format parameter can be used to identify timezone?
  • 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 $i = 0;while ($i = 10){ print hi;}print…
  • The date() function returns ___ representation of the current date and/or time.
  • 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 $a1 = array(red, green);$a2 = array(blue,…
  • What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  • 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 echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  • What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota, Honda,…
  • 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 = 5;while (--$i > 0){ $i++;print $i;print…
  • PHP files have a default file extension of..
  • A PHP script should start with ___ and end with ___:
  • What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  • What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  • -->

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