Which statement will output $x on the screen?

A echo “\$x”;
B echo “$$x”;
C echo “/$x”;
D echo “$x;”;

Correct Answer: echo “\$x”;

A backslash is used so that the dollar sign is treated as a normal string character rather than prompt PHP to treat $x as a variable. The backslash used in this manner is known as escape character.

Related Questions

increasing the capacity of a screen __________ the screen effectiveness.
Screen capacity is proportional to (where, S = screen aperture)

Next steps