?
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;
echo "$x = $x + $y + $z";
?>
<?php
$x = 4;
$y = 3;
$z = 1;
echo "$x = $x + $y + $z";
?>
Answer & Solution
Correct Answer:
Option
A
Again since the variables are inside double quotes we get this result.
Join the Discussion
Login to post a comment or share your explanation.
Login