Variables
1.
What will be the output of the following PHP code?
<?php
$x = 5;
$y = 10;
$z = "$x + $y";
echo "$z";
?> 2.
What will be the output of the following PHP code?
<?php
$x = 5;
$y = 10;
$z = "$x + $y";
echo "$z";
?> 3.
What will be the output of the following PHP code?
<?php
$x = 4;
$y = 3;
$z = 1;
echo "$x = $x + $y + $z";
?> 4.
What will be the output of the following PHP code?
<?php
$x = 4;
$y = 3
$z = 1;
$z = $z + $x + $y;
echo "$z";
?> 5.
What will be the output of the following PHP code?
<?php
$x = 3.3;
$y = 2;
echo $x % $y;
?> 6.
What will be the output of the following PHP code?
<?php
$x = 3.3;
$y = 2;
echo $x % $y;
?> 7.
What will be the output of the following PHP code?
<?php
$x = 10;
$y = 4;
$z = 3;
echo $x % $y % $z;
?> 8.
What will be the output of the following PHP code?
<?php
$x = 10;
$y = 4;
$z = 3;
echo ($x % ($y) + $z);
?> 9.
What will be the output of the following PHP code?
<?php
$x = 30;
$y = 20;
$z = 10;
echo $x + $y - $z / ($z - $y);
?> 10.
What will be the output of the following PHP code?
<?php
$x = 30;
$y = 20;
$z = 10;
echo $x + $y - $z / ($z - $y);
?>