Escape characters in PHP

The main purpose of using an escape character is to notify the compiler or interpreter, that a particular character is having special meaning.

Escape characters in PHP

What are escape characters?

Escape characters are the equivalent characters for a purpose. The main purpose of using an escape character is to notify the compiler or interpreter, that a particular character is having special meaning rather than it’s normal meaning. Following are the escape characters in PHP.

Escape characters Meaning
\nNew line
\tHorizontal tab
\\Backslash
\$Dollar sign
\"Double Quotes

Share Tweet Send
0 Comments
Loading...