Used in unix series n
Used in windows series rn
Used in mac r
PHP_EOL can be used instead in PHP to improve the source code level portability of the code
For example:
Copy code The code is as follows:
echo PHP_EOL;
/ /windows platform is equivalent to echo "rn";
//unixlinux platform is equivalent to echo "n";
//mac platform is equivalent to echo "r";
We can use Function get_defined_constants() to get all PHP constants.
http://www.bkjia.com/PHPjc/824938.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/824938.htmlTechArticleUse n in the unix series, rn in the windows series, r in mac, you can use PHP_EOL instead in PHP to improve Source code level portability of code, for example: Copy the code as follows: echo PHP...