Albert Einstein once said, "Imagination is more important than knowledge."
Albert Einstein once said, "Imagination is more important than knowledge."
The escape slash (backslash) lets you include special characters inside a string without breaking it. In the first example, the backslash tells PHP that the double quote is part of the text, not the end of the string. Without escaping, PHP would think the string ends early and cause an error.