GlobIterator 类

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

简介

遍历一个文件系统行为类似于 glob()

类摘要

class GlobIterator extends FilesystemIterator implements Countable {
/* 继承的常量 */
/* 方法 */
public __construct(string $pattern, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)
public count(): int
/* 继承的方法 */
public SplFileInfo::getBasename(string $suffix = ""): string
public SplFileInfo::openFile(string $mode = "r", bool $useIncludePath = false, ?resource $context = null): SplFileObject
public SplFileInfo::setFileClass(string $class = SplFileObject::class): void
public SplFileInfo::setInfoClass(string $class = SplFileInfo::class): void
}

目录

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top