I print newline characters under mac
var_dump(PHP_EOL);
Google displays the source code as follows:
html:
then the print result shows that PHP_EOL on mac is equivalent to\ n
. and Baidu"s results are as follows:
\ n: UNIX system line Terminator
\ n\ r: window system Line Terminator
\ r: MAC OS system Line Terminator
so, does anyone know why? A very strange question