"Go" PHP removes the use of line breaks and Php_eol variables
About \n,\r,\t?
\ n Soft return:? In Windows, it represents a newline and goes back to the beginning of the next line, only in Linux, UNIX, but not back to the beginning of the next line.
\ r Soft space:? In Linux, Unix represents the return to the beginning of the line.? in Mac OS, it is the first place to return to the next line, equivalent to the effect of \ n in Windows.
\ t jump (move to next column)?
A few notes:?
- They are valid in a double-quote or delimiter-represented string, and are not valid in a single-quote string.
- \ r \ n generally used together, to indicate the key on the keyboard return (Linux,unix), you can also only use \ n (windwos), in Mac OS with \ r to indicate carriage returns.
- \ t represents the "tab" key on the keyboard.
- NewLine symbol in file: Windows: \n,linux,unix: \ r \ n
?
????? Php_eol (end of line) is a well-defined variable, representing the PHP newline character, which will change depending on the platform, under Windows will be/r/n, under Linux is/N, under Mac is/R. Just press the following to change the line.
?
$str = Str_replace (Php_eol, ", $STR);
?
?
This article transferred from: http://www.nowamagic.net/librarys/veda/detail/1276
?