## Example

`

     array file ( string $filename [, int $flags = 0 [, resource $context ]] )

`

## Description

Reads an entire file into an array. Note: You can use file_get_contents() to return the contents of a file as a string.

## Return Values

Returns the file in an array. Each element of the array corresponds to a line in the file, with the newline still attached. Upon failure, file() returns FALSE. Note: Each line in the resulting array will include the line ending, unless FILE_IGNORE_NEW_LINES is used, so you still need to use rtrim() if you do not want the line ending present. Note: If PHP is not properly recognizing the line endings when reading files either on or created by a Macintosh computer, enabling the auto_detect_line_endings run-time configuration option may help resolve the problem.