ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.