Is there an equivalent of C#'s verbatim string literals in PHP?

arifulislam11

New Member
I know I can create a verbatim string literal in C# by using the @ symbol. For example, the usual \[code\]String path = "C:\\MyDocs\\myText.txt";\[/code\]can also be re-written as \[code\]String path = @"C:\MyDocs\myText.txt";\[/code\]In this way, the string literal isn't cluttered with escape characters and makes it much more readable. What I would like to know is whether PHP also has an equivalent or do I have to manually escape the string myself?
 
Back
Top