Answers

Question and Answer:

  Home  PHP

⟩ How Many Escape Sequences Are Recognized in Double-Quoted Strings in PHP?

There are 12 escape sequences you can use in double-quoted strings:

â–º - Represents the back slash character.

â–º " - Represents the double quote character.

â–º $ - Represents the dollar sign.

â–º - Represents the new line character (ASCII code 10).

â–º - Represents the carriage return character (ASCII code 13).

â–º - Represents the tab character (ASCII code 9).

â–º { - Represents the open brace character.

â–º } - Represents the close brace character.

â–º [ - Represents the open bracket character.

â–º ] - Represents the close bracket character.

â–º nn - Represents a character as an octal value.

â–º xnn - Represents a character as a hex value.

 236 views

More Questions for you: