PHP ESCAPE SLASH

Understanding the PHP Escape Slash

In PHP, the escape slash (\) allows certain characters to be treated as literal characters. In the case of the example below it allows the quotations to remain double quotations and not be interpreted as the end of a string.


He said "Hello, World!"