An escape slash is used for escaping a character when placing it infront of it.
This ensures the code is not ran as PHP and is ignored for a clear and error free output.
The examples below demonstrate the difference between the quotes.

My major is IST. (Using escape slash)
My major is $mymajor. (Not using escape slash)