PHPディレクトリ関数
PHPディレクトリの紹介
ディレクトリ関数を使用すると、ディレクトリとその内容に関する情報を取得できます。
インストール
PHPディレクトリ関数はPHPコアの一部です。これらの機能を使用するためにインストールは必要ありません。
PHPディレクトリ関数
Function | Description |
---|---|
chdir() | Changes the current directory |
chroot() | Changes the root directory |
closedir() | Closes a directory handle |
dir() | Returns an instance of the Directory class |
getcwd() | Returns the current working directory |
opendir() | Opens a directory handle |
readdir() | Returns an entry from a directory handle |
rewinddir() | Resets a directory handle |
scandir() | Returns an array of files and directories of a specified directory |