\ n is a line change, English is the LINEFEED,ASCII code is 0xA.
\ r is enter, English is carriage return, ASCII code is 0xD.
If you use a mechanical typewriter, you know the difference between carriage return and line change ...
The line is to
Php obtains the textarea value and processes the carriage return and line feed method. textarea returns the line feed. Php obtains the textarea value and processes the carriage return and line feed method. the example in this article describes how
Introduction: Reading symfony$ Value = str_replace (Array ("/R/N", "/R"), "/N", $ value) is found in the source code );
What is the difference between carriage return and line feed?(Link: http://www.52rd.com/Blog/Detail_RD.Blog_imjacob_12317.html)
Http://www.cnblogs.com/dartagnan/archive/2010/12/14/2003499.html Linux and Windows carriage return line break
Source:
"Carriage Return" vs "line feed)Before the computer appeared, there was a kind of device called teletype model 33, which can
PHP implements line feed output for carriage return in html source code
Enter a line break in the source code, but do not display characters such as br. We need to use php to turn the characters into characters. Let's take a look at the following.
In the source code to enter a newline but do not display such as BR characters we need to escape the characters in PHP to achieve, the following is a look at it.
Knowledge expansion
transition sequence
description
The PHP implementation splits the value of textarea into an array based on the carriage return line, textarea the carriage return.
This example describes how the PHP implementation splits the value of textarea into an array based on the carriage
PHP gets the value of textarea and handles the method of carriage return, textarea carriage return line
This example describes how PHP gets the value of the textarea and handles the carriage return line-wrapping method. Share to everyone for your
Use python to design HTML-Based C language syntax to highlight the display program1st-school year semesterCompilation and translation principleCourse schedule reportClass 02 (II)Student ID 19Name: Liu XiaomingScoreInstructor Lu chaohuiI.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.