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.
Loading...
Related Quiz
- What is the primary advantage of using PDO over traditional MySQL functions in PHP?
- Which type of JOIN returns only the rows where there is a match in both tables?
- You are writing a PHP script and you need to encode an array into a JSON object. How would you do this?
- The filter_var() function in PHP with the FILTER_VALIDATE_INT filter is used to check if a variable is an ______.
- Which of the following are valid ways to add comments to PHP code?