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