The SplTempFileObject class
(PHP 5 >= 5.1.2, PHP 7, PHP 8)
Introduction
The SplTempFileObject class offers an object-oriented interface for a temporary file.
Class synopsis
/* Inherited constants */
/* Methods */
/* Inherited methods */
#[\Deprecated(
public function SplFileObject::fgetcsv(string
since: '8.6')]public function SplFileObject::fgetcsv(string
$separator = ",", string $enclosure = "\"", string $escape = "\\"): array|false#[\Deprecated(
public function SplFileObject::fputcsv(
array
string
string
string
string
): int|false
since: '8.6')]public function SplFileObject::fputcsv(
array
$fields,string
$separator = ",",string
$enclosure = "\"",string
$escape = "\\",string
$eol = "\n"): int|false
#[\Deprecated(
public function SplFileObject::setCsvControl(string
since: '8.6')]public function SplFileObject::setCsvControl(string
$separator = ",", string $enclosure = "\"", string $escape = "\\"): voidpublic function SplFileInfo::openFile(string
}$mode = "r", bool $useIncludePath = false, ?resource $context = null): SplFileObjectTable of Contents
- SplTempFileObject::__construct — Construct a new temporary file object
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
