PHP MCQ Questions and Answers
Practice ModeShowing 10 of 130 questions
Q91
what will be the ouput of below code ? Assume that today is 2009-5-19:2:45:32 pm
<?php
$today = date("F j, Y, g:i a");
Answer: Option B
Q92
Which of the following function is used for terminate the script execution in PHP?
Answer: Option A
Q93
What function used to print statement in PHP?
Answer: Option A
Q94
<?php
define("x","5");
$x=x+10;
echo x;
?>
Answer: Option A
Q95
what will be the output of below code ?
<?php
$arr = array(5 => 1, 12 => 2);
$arr[] = 56;
$arr["x"] = 42;
unset($arr);
echo var_dump($arr);
?>
Answer: Option B
Q96
PHP variables are
Answer: Option A
Q97
Which of these statements is true?
Answer: Option C
Q98
Is php can support multiple inheritance?
Answer: Option A
Q99
How would you add 1 to the variable $count?
Answer: Option B
Q100
Which of the following is used to check if a function has already been defined?
Answer: Option A