?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 5;
$y = 10;
$z = "$x + $y";
echo "$z";
?>
<?php
$x = 5;
$y = 10;
$z = "$x + $y";
echo "$z";
?>
Answer & Solution
Correct Answer:
Option
B
Variable z will store 10 + 5 because 10 + 5 is given in double-quotes.
Join the Discussion
Login to post a comment or share your explanation.
Login