I am escaping a direct string with a backslash.

The instructor said "Just a like the Example"

Using an escape character with variables.

This is a string with no escape character before the variable

The instructor said Just like the example

This is a string with an escape character before the variable

The instructor said $var

Escape characters allow the use of quotes within strings and make variables either literal or interpreted. If the escape character is inserted before a variable it makes the variable literal and will not render its value.

Word count: 36