Php_eol line break _php tutorial in PHP

Source: Internet
Author: User
Look at the manual found php_eol this variable, checked the information, the original is equivalent to a newline character

In the UNIX series with \ n
In Windows series with \ r \ n
On Mac with \ r
PHP can be replaced with Php_eol to improve code-level portability

Like what:


[PHP]
Echo Php_eol;
The Windows platform is equivalent to echo "\ r \ n";
Unix\linux platform equivalent to echo "\ n";
The Mac platform is equivalent to echo "\ r";

Echo Php_eol;
The Windows platform is equivalent to echo "\ r \ n";
Unix\linux platform equivalent to echo "\ n";
The Mac platform is equivalent to echo "\ r";

We can use the function get_defined_constants () to get all the PHP constants.

http://www.bkjia.com/PHPjc/477285.html www.bkjia.com true http://www.bkjia.com/PHPjc/477285.html techarticle look at the manual found Php_eol this variable, looked up the following information, the original is equivalent to newline characters in the UNIX series with \ r \ n in the Windows series with the \ r in Mac PHP can be replaced with php_eol, to mention ...

  • 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.