Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

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

PHP Interview Question
PHP Interview Question

Answer:

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.


Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
What Are the Special Characters You Need to Escape in Double-Quoted Stings?How To Include Variables in Double-Quoted Strings in PHP?