What will be the output of the following PHP code?
$total = "25 student

Home | Discussion Forum

Free Online Test

Taiyari24Hour

What will be the output of the following PHP code?

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



View More Related Question

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

function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();

2) Which of the conditional statements is/are supported by PHP?

  1. if statements
  2. if-else statements
  3. if-elseif statements
  4. switch statements

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

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

4) 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”);

5) Which of the following php statement/statements will store 111 in variable num?

  1. int $num = 111;
  2. int mum = 111;
  3. $num = 111;
  4. 111 = $num;

UP Gk Online Test

taiyari24hour.com

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