The ________ function in PHP returns an array of files and directories from the specified directory.

  • file_get_contents
  • dir()
  • scandir()
  • list_dir()
The scandir() function is used in PHP to return an array of files and directories in a specified directory. It's commonly used for directory listing operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *