A classe DirectoryIterator

(PHP 5, PHP 7, PHP 8)

Introdução

A classe DirectoryIterator fornece uma interface simples para visualização de conteúdo de sistemas de arquivos.

Resumo da classe

class DirectoryIterator extends SplFileInfo implements SeekableIterator {
/* Métodos */
public __construct(string $directory)
public current(): mixed
public getBasename(string $suffix = ""): string
public isDot(): bool
public key(): mixed
public next(): void
public rewind(): void
public seek(int $offset): void
public __toString(): string
public valid(): bool
/* Métodos herdados */
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
}

Table of Contents