PHP 8.1.0 RC 2 available for testing

La clase SplTempFileObject

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

Introducción

La clase SplTempFileObject ofrece una interfaz orientada a objectos para ficheros temporales.

Sinopsis de la Clase

class SplTempFileObject extends SplFileObject implements SeekableIterator, RecursiveIterator {
/* Constantaes heredadas constants */
const integer SplFileObject::DROP_NEW_LINE = 1;
const integer SplFileObject::READ_AHEAD = 2;
const integer SplFileObject::SKIP_EMPTY = 4;
const integer SplFileObject::READ_CSV = 8;
/* Métodos */
public __construct(int $max_memory = ?)
/* Métodos heredados */
public SplFileObject::current(): string|array
public SplFileObject::eof(): bool
public SplFileObject::fflush(): bool
public SplFileObject::fgetc(): string
public SplFileObject::fgetcsv(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): array
public SplFileObject::fgets(): string
public SplFileObject::fgetss(string $allowable_tags = ?): string
public SplFileObject::flock(int $operation, int &$wouldblock = ?): bool
public SplFileObject::fputcsv(
    array $fields,
    string $delimiter = ",",
    string $enclosure = '"',
    string $escape = "\"
): int
public SplFileObject::fread(int $length): string
public SplFileObject::fscanf(string $format, mixed &$... = ?): mixed
public SplFileObject::fseek(int $offset, int $whence = SEEK_SET): int
public SplFileObject::fstat(): array
public SplFileObject::ftell(): int
public SplFileObject::ftruncate(int $size): bool
public SplFileObject::fwrite(string $str, int $length = ?): int
public SplFileObject::key(): int
public SplFileObject::next(): void
public SplFileObject::rewind(): void
public SplFileObject::seek(int $line_pos): void
public SplFileObject::setCsvControl(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): void
public SplFileObject::setFlags(int $flags): void
public SplFileObject::setMaxLineLen(int $max_len): void
public SplFileObject::valid(): bool
}

Tabla de contenidos

add a note add a note

User Contributed Notes

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