?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>
<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>
Answer & Solution
Correct Answer:
Option
B
As there is a backslash before $ it takes it as a string and not a variable therefore we get $looser as the output.
Join the Discussion
Login to post a comment or share your explanation.
Login