The Directory function allows you to obtain information about a directory and its contents.
The PHP Directory function is an integral part of PHP core. No installation is required to use these functions.
function | describe |
---|---|
chdir() | Change the current directory. |
chroot() | Change the root directory. |
closedir() | Close the directory handle. |
dir() | Returns an instance of the Directory class. |
getcwd() | Returns the current working directory. |
opendir() | Open a directory handle. |
readdir() | Returns the entry in the directory handle. |
rewinddir() | Reset directory handle. |
scandir() | Returns an array of files and directories in the specified directory. |