Vidyalelo
PHP · Q74

Operators And Expressions

Programming · PHP · question 74

Q74

What will be the output of the following PHP code ?

A.
looser
B.
$looser
C.
\
Answer
D.
$winner

Answer: Option C

Solution

Answer: Option C
Solution:
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.