# The SplTempFileObject class

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

## 简介

The SplTempFileObject class offers an object-oriented interface for a temporary file.

## 类摘要

class SplTempFileObject extends SplFileObject {
/* 继承的常量 */
public const int SplFileObject::DROP_NEW_LINE;
public const int SplFileObject::READ_AHEAD;
public const int SplFileObject::SKIP_EMPTY;
public const int SplFileObject::READ_CSV;
/* 方法 */
public function __construct(int `$maxMemory` = 2 * 1024 * 1024)
/* 继承的方法 */
public function SplFileObject::current(): string|array|false
public function SplFileObject::eof(): bool
public function SplFileObject::fflush(): bool
public function SplFileObject::fgetc(): string|false
public function SplFileObject::fgetcsv(string `$separator` = ",", string `$enclosure` = "\"", string `$escape` = "\\"): array|false
public function SplFileObject::fgets(): string
public function SplFileObject::fgetss(string `$allowable_tags` = ?): string
public function SplFileObject::flock(int `$operation`, int `&$wouldBlock` = `null`): bool
public function SplFileObject::fpassthru(): int
public function SplFileObject::fputcsv(
array `$fields`,
string `$separator` = ",",
string `$enclosure` = "\"",
string `$escape` = "\\",
string `$eol` = "\n"
): int|false
public function SplFileObject::fread(int `$length`): string|false
public function SplFileObject::fscanf(string `$format`, mixed `&...$vars`): array|int|null
public function SplFileObject::fseek(int `$offset`, int `$whence` = `SEEK_SET`): int
public function SplFileObject::fstat(): array
public function SplFileObject::ftell(): int|false
public function SplFileObject::ftruncate(int `$size`): bool
public function SplFileObject::fwrite(string `$data`, ?int `$length` = `null`): int|false
public function SplFileObject::getChildren(): null
public function SplFileObject::getCsvControl(): array
public function SplFileObject::getFlags(): int
public function SplFileObject::getMaxLineLen(): int
public function SplFileObject::hasChildren(): false
public function SplFileObject::key(): int
public function SplFileObject::next(): void
public function SplFileObject::rewind(): void
public function SplFileObject::seek(int `$line`): void
public function SplFileObject::setCsvControl(string `$separator` = ",", string `$enclosure` = "\"", string `$escape` = "\\"): void
public function SplFileObject::setFlags(int `$flags`): void
public function SplFileObject::setMaxLineLen(int `$maxLength`): void
public function SplFileObject::__toString(): string
public function SplFileObject::valid(): bool
public function SplFileInfo::getATime(): int|false
public function SplFileInfo::getBasename(string `$suffix` = ""): string
public function SplFileInfo::getCTime(): int|false
public function SplFileInfo::getExtension(): string
public function SplFileInfo::getFileInfo(?string `$class` = `null`): SplFileInfo
public function SplFileInfo::getFilename(): string
public function SplFileInfo::getGroup(): int|false
public function SplFileInfo::getInode(): int|false
public function SplFileInfo::getLinkTarget(): string|false
public function SplFileInfo::getMTime(): int|false
public function SplFileInfo::getOwner(): int|false
public function SplFileInfo::getPath(): string
public function SplFileInfo::getPathInfo(?string `$class` = `null`): ?SplFileInfo
public function SplFileInfo::getPathname(): string
public function SplFileInfo::getPerms(): int|false
public function SplFileInfo::getRealPath(): string|false
public function SplFileInfo::getSize(): int|false
public function SplFileInfo::getType(): string|false
public function SplFileInfo::isDir(): bool
public function SplFileInfo::isExecutable(): bool
public function SplFileInfo::isFile(): bool
public function SplFileInfo::isLink(): bool
public function SplFileInfo::isReadable(): bool
public function SplFileInfo::isWritable(): bool
public function SplFileInfo::openFile(string `$mode` = "r", bool `$useIncludePath` = `false`, ?resource `$context` = `null`): SplFileObject
public function SplFileInfo::setFileClass(string `$class` = `SplFileObject::class`): void
public function SplFileInfo::setInfoClass(string `$class` = `SplFileInfo::class`): void
public function SplFileInfo::__toString(): string
}

## 目录

- SplTempFileObject::__construct — Construct a new temporary file object

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open