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.