The SplTempFileObject class

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

简介

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

类摘要

SplTempFileObject extends SplFileObject implements SeekableIterator , RecursiveIterator {
/* 继承的常量 */
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 ;
/* 方法 */
public __construct ( int $maxMemory = 2 * 1024 * 1024 )
/* 继承的方法 */
public SplFileObject::current ( ) : string|array|false
public SplFileObject::eof ( ) : bool
public SplFileObject::fflush ( ) : bool
public SplFileObject::fgetc ( ) : string|false
public SplFileObject::fgetcsv ( string $separator = "," , string $enclosure = "\"" , string $escape = "\\" ) : array|false
public SplFileObject::fgets ( ) : string
public SplFileObject::fgetss ( string $allowable_tags = ? ) : string
public SplFileObject::flock ( int $operation , int &$wouldBlock = null ) : bool
public SplFileObject::fpassthru ( ) : int
public SplFileObject::fputcsv ( array $fields , string $separator = "," , string $enclosure = "\"" , string $escape = "\\" , string $eol = "\n" ) : int|false
public SplFileObject::fread ( int $length ) : string|false
public SplFileObject::fscanf ( string $format , mixed &...$vars ) : array|int|null
public SplFileObject::fseek ( int $offset , int $whence = SEEK_SET ) : int
public SplFileObject::fstat ( ) : array
public SplFileObject::ftell ( ) : int|false
public SplFileObject::ftruncate ( int $size ) : bool
public SplFileObject::fwrite ( string $data , int $length = 0 ) : int|false
public SplFileObject::getCsvControl ( ) : array
public SplFileObject::getFlags ( ) : int
public SplFileObject::hasChildren ( ) : bool
public SplFileObject::key ( ) : int
public SplFileObject::next ( ) : void
public SplFileObject::rewind ( ) : void
public SplFileObject::seek ( int $line ) : void
public SplFileObject::setCsvControl ( string $separator = "," , string $enclosure = "\"" , string $escape = "\\" ) : void
public SplFileObject::setFlags ( int $flags ) : void
public SplFileObject::setMaxLineLen ( int $maxLength ) : void
public SplFileObject::valid ( ) : bool
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.
PHP8中文手册 站长在线 整理 版权归PHP文档组所有