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
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
This article mainly introduces how php can get the value of textarea and process the line break of carriage return, which involves conversion and processing of special characters. For more information, see
This article mainly introduces how php can
This article mainly introduces how php obtains the textarea value and processes the carriage return line feed, which involves the conversion and processing of special characters, for more information about how to use php to obtain the textarea value
Carriage Return and line feed
Press enter \ r, line feed \ n
History
The origins and differences between carriage return and line feed.
Before the computer appeared, there was a kind of device called teletype model 33, which can
In the html form, in textarea, we press the carriage return and line feed to display some asc or special characters, but we cannot see them. if we do not convert the output text, there is no typographical layout, the following is a summary of some
EOF
EOF (end of file) is a status returned by the file read operation. It is not a value read from the file, instead, it is a return value when the file reading function reads the end Of the file or cannot read down. The returned value is generally-1
The example in this article describes how PHP gets the value of textarea and handles the method of carriage return line wrapping. Share to everyone for your reference. The implementation methods are as follows:
In general, in the HTML form textarea
1.1 Learning the Echo rem CD dir command
Learning points:1. Display information: Echo2. Comment Statement: REM3. Directory Switching: CD4. Column File name: dir
One, display information: Echo
Before we learn the echo command, we'll build a new
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.
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.