PHP - Manual: Directory
2025-02-27
(PHP 4, PHP 5, PHP 7, PHP 8)
Directory 实例是通过调用 dir() 函数创建的,而不是 new 操作符。
被打开目录的地址。
目录句柄。可以被其他的目录操作函数使用,例如 readdir()、rewinddir() 和 closedir()。
官方地址:https://www.php.net/manual/en/class.directory.php