Q: Which composite data types are supported by php?
Ans: Array
Q: The default value of register_globals in PHP is:
Ans: Off
Q: Which of the following is not a valid PHP connection status?
Ans: open
Q: Choose the correct statement:
Ans: include() includes and evaluates a specific file
require_once() includes and evaluates a specific file only if it has not been included before
Q: If the session_cache_expire() is not set, then by default the session cache will expire after:
Ans: 3 hrs
Q: What will be the output of the following script?
$count=50;
function Argument()
{
$count++;
echo $count;
}
Argument();
?>
Ans: It will print 1
Ans: Array
Q: The default value of register_globals in PHP is:
Ans: Off
Q: Which of the following is not a valid PHP connection status?
Ans: open
Q: Choose the correct statement:
Ans: include() includes and evaluates a specific file
require_once() includes and evaluates a specific file only if it has not been included before
Q: If the session_cache_expire() is not set, then by default the session cache will expire after:
Ans: 3 hrs
Q: What will be the output of the following script?
$count=50;
function Argument()
{
$count++;
echo $count;
}
Argument();
?>
Ans: It will print 1