Method 2:
Method 3:
Attachment-----: n Soft return: In Windows, it means wrapping and returning to the beginning of the next line. In Linux and Unix, it only means line break, but it will not return to the beginning of the next line. r Soft spaces: In Linux and Unix, it means returning to the beginning of the current line. In Mac OS, it means breaking a line and returning to the beginning of the next line, which is equivalent to the effect of n in Windows. t Tab (move to next column) A few notes: They are valid in strings represented by double quotes or delimiters, but not in strings represented by single quotes. rn is generally used together to represent the Enter key on the keyboard (in Linux and Unix). You can also just use n (in Windows). In Mac OS, use r to represent Enter! t represents the "TAB" key on the keyboard. Newline symbols in files: windows : n linux,unix: rn No matter how many theories there are, a simple example can make everyone understand more clearly:
>>>> Articles you may be interested in: php remove string newline character instance analysis php compress html (clear newlines, clear tabs, remove comment marks) How to convert textarea line breaks in php forms Code examples of php regular filtering html tags, spaces, newlines, etc. How to compress html webpage code with php (remove spaces, newlines, tabs, comment marks, etc.) Provide several php methods to replace newline characters php generates excel and controls line breaks in Excel cells |