?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$one = "Hello";
$two = "World";
echo "$one$two";
?>
<?php
$one = "Hello";
$two = "World";
echo "$one$two";
?>
Answer & Solution
Correct Answer:
Option
A
Even though both the variables are inside the double-quotes, the value of the variable is substituted and then printed to the screen.
Join the Discussion
Login to post a comment or share your explanation.
Login