Sharpen your PHP skills with these multiple choice questions on PHP basics. Great for beginners, students, and interview preparation. Start practicing now!.
<?php
echo "Hello ";
echo "World!";
?>
Hello World!
The `echo` statement is used to output the text. In this case, "Hello" and "World!" are printed sequentially without any issues.
<?php
$x = 5;
$y = 10;
echo $x + $y;
?>
15
The `+` operator is used to add two numbers. In this case, the sum of `$x` and `$y` (5 + 10) results in 15.
<?php
$a = 10;
$b = 5;
$a = $a / $b;
echo $a;
?>