Escape Slash in PHP

With Escape: khatab said hello
Without Escape: khatab said hello

The escape slash helps us manage how we use quotes in strings. In this example using double quotes lets us include variablesand single quotes treat everything inside them as plain text.