fputs linefeed

Combinations of chr(10) and chr(13) have unpredictable outputs

If you want to collect data from a text file with fgets, lines should be seperated by \r\n or in hex 0D 0A.
Unfortunately you do not get what you might expect using fputs. Using PHP 5.6.3. and Windows 10.
fputsPHP 5.6.3. outputPHP 4.3.2. output
write
PHP 4.3.2. output
append
\r\r\n\r\r\n
\n\r\n\r\r\n
\n\r\r\n\r\n\r\n\r\n\r
\r\n\r\n\r\r\r\r\n
\n\n\r\n\r\n\r\n\r\n\r\n
\r\r\r\n\r\nnot testednot tested
So, confused? Me, too. A prior check in PHP 4.3.2. was even more confusing and it seemed that 'append' had a different than 'write'. It might be different because Linux uses only 0D as linefeed.