The PHP escape slash is to allow for characters in a string or otherwise that would typically cause a syntax error.
This is why it's called escape because it 'escapes' from the syntax, allowing for your to adjust the string to allow for illegal characters.