1.

Which one of the following function is capable of reading a file into an array?(a) file()(b) arrfile()(c) arr_file()(d) file_arr()This question was posed to me during an online interview.I would like to ask this question from File System and PHP in section File and Session Handling in PHP of PHP

Answer»

The CORRECT ANSWER is (a) FILE()

Explanation: The function file() will READ the entire file into an ARRAY.



Discussion

No Comment Found

Related InterviewSolutions