A PHP script should start with ___ and end with ___:

Home | Discussion Forum

A PHP script should start with ___ and end with ___:

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';

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 ?

UP Gk Online Test

taiyari24hour.com