What are the benefits of using `FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES` when working with data read into an array using `file()` in PHP?

When using `file()` in PHP to read data into an array, it may include new line characters and empty lines which can affect the processing of the data. By using `FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES` as flags when calling `file()`, it will remove any new line characters and skip over empty lines, resulting in a cleaner and more manageable array of data.

$data = file('data.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);