1.

Which one of the following function reads a directory into an Array?(a) scandir()(b) readdir()(c) scandirectory()(d) readdirectory()I have been asked this question in final exam.The doubt is from File System and PHP topic in division File and Session Handling in PHP of PHP

Answer»

The correct option is (a) scandir()

For explanation: It returns an array CONSISTING of files and directories FOUND in DIRECTORY or returns FALSE on ERROR.



Discussion

No Comment Found

Related InterviewSolutions