PHP conversion form textarea line break Code _php tutorial

Source: Internet
Author: User
After my test form textarea line break, under Windows is RN, in Linux is N (this is not real

In addition, R,n has a line-wrapping function under win.

Table 6-1. Escape character

Sequence
Meaning

N
NewLine (LF or ASCII characters 0x0a (10))

R
Enter (CR or ASCII character 0x0d (13))

T
Horizontal tab (HT or ASCII character 0x09 (9))


Reverse Slash

$
Dollar sign

”
Double quotes

[0-7] {1,3}
This regular expression sequence matches a character represented by an octal symbol

x[0-9a-fa-f]{1,2}
This regular expression sequence matches a character that is represented by a hexadecimal symbol


Summary: A lot of friends say in TextArea line code n is so Str_replace ("n", "<>< p=""><>

/> "), but actually this is not the window standard line, we should change into str_replace

("Nr", "
"So it's KO.

http://www.bkjia.com/PHPjc/632330.html www.bkjia.com true http://www.bkjia.com/PHPjc/632330.html techarticle after my test form textarea line break, under Windows is RN, in Linux is N (this is not measured), in addition, in the win, R,n have a line-wrapping function table 6-1. Escape character sequence meaning n line break ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.