PHP MCQ - English
A PHP script should start with ___ and end with ___:
Home | Discussion ForumA PHP script should start with ___ and end with ___:
< php >
< ? php ? >
< ? ? >
< ?php ? >
Answer : D
Free Online Test
View More Related Question
1) What will be the output of the following php code?
$num = 1;
$num1 = 2;
print $num . "+". $num1;
?>
2) What will be the output of the following code?
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>
3) What will be the output of the following PHP code?$num = 10;
echo 'What is her age? n She is $num years old';
What is her age? n She is $num years old
What is her age? She is $num years old
What is her age? She is 10 years old
What is her age?n She is 10 years old
View Answer
4) What will be the output of the following PHP code?$total = "25 students";
$more = 10;
$total = $total + $more;
echo "$total";
5) Which of the below statements is equivalent to $add += $add ?