(PHP 4, PHP 5, PHP 7, PHP 8)
Directory 的實例是透過呼叫 dir() 函式建立的,而不是透過 new 運算子。
已開啟的目錄。
可與其他目錄函式一起使用,例如 readdir()、rewinddir() 和 closedir()。