He said, "Hello Isaac!"
He said, "Hello Isaac!"
The escape slash (aka backslash) tells PHP to treat a special character as apart of the text rather than treating it as PHP syntax. In the first example, the backslashes allow double quotation marks to appear inside an already double quoted string WITHOUT ending the string early. The second example avoids escape slashes by using single quotes.