The escape characters in PHP are: 1. "\a" means "ring"; 2. "\b" means backspace, which is used to move the current position to the previous column; 3. "\f" means page feed, which is used to move the current position to the beginning of the next page; 4. "\n" means line feed, which is used to move the current position to the beginning of the next line.
The escape characters in PHP are:
Escape character | Meaning | ASCII code value ( Decimal) |
\a | ##Bell(BEL) | 007 |
Backspace (BS), move the current position to the previous column | 008 | |
Page change (FF), move the current position to Beginning of next page | 012 | ##\n |
Newline ( LF), move the current position to the beginning of the next line | 010 | ##\r |
Press Enter (CR) to move the current position to the beginning of this line | 013 | \t |
009 | \v | |
011 | \\ | |
092 | \' | |
039 | ##\" | |
034 | ##\? | represents a question mark063 |
\0 | ##NULL character(NULL) | |
000 | \ddd | ##Any character represented by 1 to 3 octal digits |
\xhh | Any character represented by 1 to 2 hexadecimal digits | |
For more related knowledge, please visit PHP Chinese website | !
The above is the detailed content of What are the escape characters in PHP. For more information, please follow other related articles on the PHP Chinese website!