ExamVeda
Login
Home
Operators and Expressions in php
?

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

Join the Discussion

No comments yet Be the first to discuss this question.