Escape Slash in PHP

Example:

I asked my friend, "What game do you want to play?"
My friend said, "Call of Duty."

In PHP, the backslash (\) is used as an escape character to allow special characters to be used within strings. The escape slash allows us to include special characters such as quotes within strings without breaking the syntax.