The FILE_IGNORE_NEW_LINES flag removes the \n (newline) character from each line of the file, so you'd end up with 'this is a line from the file' instead of 'this is a line from the file\n'.
The FILE_SKIP_EMPTH_LINES flag tells the function to skip lines with no content (otherwise, you'd end up with empty strings in your array whereever there was an empty line in the file).
Edit:
in your post above, it looks like you may have multiple "actor" names on each line? If so, you'd need to use a second (different) delimiter (e.g., "actor one,actor two|director|movie name" and use explode() twice. With this complexity, however, it would be much quicker (and simpler) to simply use a database.
Good luck!
Bookmarks