How does the behavior of modifying headers differ between Windows and Linux environments in PHP?

When modifying headers in PHP, the behavior can differ between Windows and Linux environments due to differences in how line endings are handled. To ensure consistent behavior across platforms, it's recommended to use the PHP_EOL constant when adding new lines in headers.

<?php
// Set a header with a new line using PHP_EOL
header('Content-Type: text/html' . PHP_EOL);
?>