How Many Escape Sequences Are Recognized in Single-Quoted Strings

Q

How Many Escape Sequences Are Recognized in Single-Quoted Strings? - PHP Script Tips - Understanding String Literals and Operations

✍: FYIcenter.com

A

There are 2 escape sequences you can use in single-quoted strings:

  • \\ - Represents the back slash character.
  • \' - Represents the single quote character.

2007-04-20, 4509👍, 0💬