PHP Write file change behavior on Windows system what to use RN together

Source: Internet
Author: User
Tags php write
PHP Write File Exchange behavior under Windows system what do you want to do with \ r \ n?
This post was last edited by Jinsonggongzuoshi on 2012-11-10 14:33:10 \ r Enter
\ nthe line break

\ r cannot be wrapped:
Fwrite ($wjzz, "test \ R");


\ nthe line cannot be changed either:
Fwrite ($wjzz, "Test \ n");


\ r \ n grouped together but can wrap:
Fwrite ($wjzz, "test \ r \ n");


Solve Ah, Baidu did not get anything ~ ~ ~
------Optimal Solution--------------------
\ r Enter to return the car to its starting position
\ n New exercise paper roll rotation line

This is the control of the telex, and there are no computers.
When the computer appears, it follows this control.
window, formerly known as DOS, is also the first operating system to appear.

UNIX to reduce the amount of storage, \ r \ n
Mac for the show do not go out of a grid, will be \ r \ n

Linux is a subset of UNIX, so it's also used \ n

------Other Solutions--------------------
That's the way Microsoft is set, no reason.

Want to cross the platform with Php_eol constants
------Other Solutions--------------------
Really professional ... Profound......

I 寡陋 know.
------Other Solutions--------------------
Reference:
\ r Enter to return the car to its starting position
\ n New exercise paper roll rotation line

This is the control of the telex, and there are no computers.
When the computer appears, it follows this control.
window, formerly known as DOS, is also the first operating system to appear.

UNIX to reduce the amount of storage, \ r \ n
Mac for the show do not go out of a grid, will be \ r \ n

Linux is a subset of Unix, ...
Moderator is not the same AH.
  • 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.