PHP Velho Oeste 2024

A classe SplFileInfo

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

Introdução

A classe SplFileInfo oferece uma interface orientada a objetos de alto nível para informações sobre um arquivo individual.

Resumo da classe

class SplFileInfo implements Stringable {
/* Métodos */
public __construct(string $filename)
public getATime(): int|false
public getBasename(string $suffix = ""): string
public getCTime(): int|false
public getGroup(): int|false
public getInode(): int|false
public getMTime(): int|false
public getOwner(): int|false
public getPath(): string
public getPerms(): int|false
public getSize(): int|false
public getType(): string|false
public isDir(): bool
public isExecutable(): bool
public isFile(): bool
public isLink(): bool
public isReadable(): bool
public isWritable(): bool
public openFile(string $mode = "r", bool $useIncludePath = false, ?resource $context = null): SplFileObject
public setFileClass(string $class = SplFileObject::class): void
public setInfoClass(string $class = SplFileInfo::class): void
public __toString(): string
}

Registro de Alterações

Versão Descrição
8.0.0 SplFileInfo implementa Stringable agora.

Índice

add a note

User Contributed Notes

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