Possible Duplicate:
PHP Echo Line Breaks
There is a \n
for Windows and a PHP_EOL
for UNIX (I think), but is there a break which works on every platform in a webapp? Or is the PHP_EOL
-snippet the one I'm looking for?
Possible Duplicate:
PHP Echo Line Breaks
There is a \n
for Windows and a PHP_EOL
for UNIX (I think), but is there a break which works on every platform in a webapp? Or is the PHP_EOL
-snippet the one I'm looking for?
well, platforms has very little to do here.
The difference is only applicable to the text files, browsed in some outside program.
While for the output the rules may be different from these platform-related ones.
Say, for MIME and HTML "\r\n" is a standard despite of the platform
PHP_EOL
is platform-dependent, and will vary based on what OS PHP is running on.