Which statement will output $x on the screen?

Home | Discussion Forum

Free Online Test

Taiyari24Hour

Which statement will output $x on the screen?



View More Related Question

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

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

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

3) Which of the following is/are a PHP code editor?

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

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

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

$score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];

UP Gk Online Test

taiyari24hour.com

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