-
What will be the output of the following PHP code ?
<?php
$str1 = "$Test";
$str2 = "\\$Example";
echo $str1, $str2;
?>
-
- $Test
- $Example
- $Test\\$Example
- \
- None of these
Correct Option: D
Since two backslashes are used together, a single backslash is printed on the screen and as $looser is not initialised only single backslash is printed.