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

Home | Discussion Forum

Free Online Test

Taiyari24Hour

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



View More Related Question

1) What will be the output of the following php code?

 $num  = 1;
$num1 = 2;
print $num . "+". $num1;
?>

2) Which of the following PHP statements will output Hello World on the screen?

  1. echo (“Hello World”);
  2. print (“Hello World”);
  3. printf (“Hello World”);
  4. sprintf (“Hello World”);

3) What will be the output of the following PHP code?

$total = "25 students";
$more = 10;
$total = $total + $more;
echo "$total";

4) What will be the output of the following PHP code?

$num = 10;
echo 'What is her age? n She is $num years old';

5) PHP files have a default file extension of..

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.