PHP: file - Manual - PHP: Hypertext Preprocessor
("file()'s problem with UTF-16" is wrong. This is updated. The former may miss the last line of the string.) file() seems to have a problem in handling UTF-16 with or without BOM. file() is likely to think "\n"=LF (0A) as a line-ending. So, not only "...