ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?

<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.