PHP Escape Slash

This is an example of using escape slash: $variable

This is an example of not using escape slash: example value

The escape slash (\) in PHP is used to escape special characters, such as the dollar sign ($), to be treated as literal characters instead of interpreting them as part of PHP syntax or variable interpolation.