GlobIterator 類
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
簡介
遍歷一個檔案系統行為類似於 glob()。
類摘要
/* 繼承的常量 */
/* 方法 */
public __construct(string
$pattern
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)/* 繼承的方法 */
public SplFileInfo::openFile(string
}$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject目錄
- GlobIterator::__construct — Construct a directory using glob
- GlobIterator::count — Get the number of directories and files