What are the potential pitfalls of using PHP_EOL for generating platform-independent line breaks in PHP code?

Using PHP_EOL for generating platform-independent line breaks in PHP code can lead to unexpected behavior when the script is run on different operating systems. To ensure consistent line breaks across platforms, it's better to use the newline character "\n" instead of PHP_EOL.

// Using "\n" for platform-independent line breaks
echo "Line 1\n";
echo "Line 2\n";