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
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
Php program line feed, how to write? Reply to discussion (solution)
\ R \ n
\ R \ n The program is in the browser. it is a line break! ()Why is the terminal command line? ()
Change:
The program is executed in the terminal command
For more information about textarea line feed, see & nbsp; textarea & nbsp; in HTML, add a carriage return to the line feed and then enter the content... Then POST to the PHP page and save the data in the database field. the type is & nbsp; text,
In the php form input box, press enter to replace the line feed. Some methods to replace line breaks in the form input box of php are summarized. if you need them, refer to this article. The code is as follows: Copy the code? Php? $ Strthisisatestn;
The fwrite () function is used to write strings to a file. the number of written characters is returned successfully. otherwise, FALSE is returned.
PHP fwrite () function
The fwrite () function is used to write strings to a file. the number of
Tlcl-view the world echo in shell eyes, tlcl-view echo
View the world in shell eyes
Echo-display a line of text
When you enter a command, bash expands the input characters before executing the command.
Expand path
Echo *
Shell expands * to the
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
Php space, line feed, skip usage instructions. For more information, see. First, let's talk about \ n, \ r, \ t
\ N soft carriage return:
In Windows, line breaks are displayed and returned to the beginning of the next line.
In Linux and unix, it
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.