(PHP 5 >= 5.1.2, PHP 7, PHP 8)
The SplTempFileObject class offers an object-oriented interface for a temporary file.
$separator = ","
, string $enclosure = "\""
, string $escape = "\\"
) : array|false$fields
, string $separator = ","
, string $enclosure = "\""
, string $escape = "\\"
, string $eol = "\n"
) : int|false$separator = ","
, string $enclosure = "\""
, string $escape = "\\"
) : void