Escape Characters in PHP : String « String « PHP
- PHP
- String
- String
Escape Characters in PHP
Escape String Resulting Character
\n Linefeed character
\r Carriage return character
\t Horizontal escape character escape character escape character escape character escape character tab character
\\ The backslash character
\$ The $ character
\' The single-quote character
\" The double-quote character
\### ASCII character (octal)
\x## ASCII character (hexadecimal)
Related examples in the same category