I have some questions about \r\n:
\r\n
<textarea>
Thanks in advance!
<br>
\n
, \r \n - , ' ' () \t (). (script, pre ..) . (\r, \r\n, \n).
\r
' '
\t
textarea, \r\n.
php , . , php . php , .
, :
print_r(" " === "\r\n");
, . .
, (, ), , , .
, PHP MySQL .
<br> , \n .
MySQL
, nl2br, , , HTML (<br />).
<br />
The system independent method uses the constant PHP_EOL.
New lines are browser independent, external tag with CSS white-space: pre you must execute the nl2br () php function to convert strings to BR tags.
It was a great success for me that in single quotes, 'like\nthis'escape sequences (for example, \n) would not be interpreted. You must use double quotes "like\nthis"to get the actual newline.
'like\nthis'
"like\nthis"