Which one of the following function reads a directory into an Array?
A
scandir()
B
readdir()
C
scandirectory()
D
readdirectory()
Correct Answer: scandir()
It returns an array consisting of files and directories found in directory or returns FALSE on error.