Explanation of escape slash

PHP escape slashes will help prevent syntax errors. When the
code is entered then read, there can be errors because of incorrectly reading
characters. For example when double quotes ( " " )
need to be printed, an escape slash will be used so the quoation marks are known to be printed.
The slash indicates that the following character should be treated specially.