File function in PHP do?

What does the File function in PHP do?
Answer:
The file function reads an input file into an array. The elements of the carry contain one line from the file.

SYNTAX IS : file(path,include_path,context)

The output will be as follows
Array
(
[0] => Hi this is line one!
[1] => Another line.
[2] => rest of the stuff,
[3] => last one?
)

0 comments:

Post a Comment