In Windows, PHP writes files for the same behavior. what should I do if I use rn together?

Source: Internet
Author: User
In Windows, what should I do if I use rn to write files in PHP? At the end of this post, JinSongGongZuoShi will Edit r & nbsp at, September 10, 2012; press enter n & nbsp; newline r cannot wrap: fwrite ($ wjzz, & nbsp; Test r ); n cannot wrap: fwrite ($ wjzz, & what should I do if I use \ r \ n to write PHP files in Windows?
This post was last edited by JinSongGongZuoShi at 14:33:10 \ r press enter
\ N line feed

\ R cannot wrap:
Fwrite ($ wjzz, "Test \ r ");


\ N cannot wrap:
Fwrite ($ wjzz, "Test \ n ");


\ R \ n can be combined with a newline:
Fwrite ($ wjzz, "Test \ r \ n ");


Solve this problem. Baidu does not get anything ~~~
------ Best solution --------------------
\ R press enter to bring the car back to its starting position
\ N new lines turn the paper roll to one line

This is the control letter of the telex. at that time, there was no electronic computer.
When a computer appears, it follows this control method.
The predecessor of window is dos, which is also the earliest operating system.

For unix, \ r \ n is abbreviated as \ n to reduce storage capacity.
For mac, \ r \ n is abbreviated as \ r.

Linux is a subset of unix, so \ n is also used

------ Other solutions --------------------
Microsoft is so determined, no reason

Use the PHP_EOL constant for cross-platform access.
------ Other solutions --------------------
Really professional ...... Profound ......

I have little knowledge.
------ Other solutions --------------------
Reference:
\ R press enter to bring the car back to its starting position
\ N new lines turn the paper roll to one line

This is the control letter of the telex. at that time, there was no electronic computer.
When a computer appears, it follows this control method.
The predecessor of window is dos, which is also the earliest operating system.

For unix, \ r \ n is abbreviated as \ n to reduce storage capacity.
For mac, \ r \ n is abbreviated as \ r.

Linux is a subset of unix ......
The moderator is different.

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.