?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 4;
$y = 3
$z = 1;
$z = $z + $x + $y;
echo "$z";
?>
<?php
$x = 4;
$y = 3
$z = 1;
$z = $z + $x + $y;
echo "$z";
?>
Answer & Solution
Correct Answer:
Option
C
Normal addition of variables x, y and z occurs and result of 8 will be displayed.
Join the Discussion
Login to post a comment or share your explanation.
Login