What are the drawbacks of using FILE_IGNORE_NEW_LINES in the file_get_contents function in PHP?

When using FILE_IGNORE_NEW_LINES in the file_get_contents function in PHP, the drawback is that it will not remove newline characters from the file content. This can lead to unexpected behavior when processing the content further, as newline characters may interfere with the desired output. To solve this issue, you can manually remove the newline characters from the content after reading the file using file_get_contents.

$fileContent = file_get_contents('example.txt');
$fileContent = str_replace(array("\r", "\n"), '', $fileContent);
echo $fileContent;