The SplFileInfo class

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

简介

The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.

类摘要

SplFileInfo {
/* 方法 */
public __construct ( string $file_name )
public getATime ( ) : int|false
public getBasename ( string $suffix = "" ) : string
public getCTime ( ) : int
public getExtension ( ) : string
public getFileInfo ( string|null $class = null ) : SplFileInfo
public getFilename ( ) : string
public getGroup ( ) : int|false
public getInode ( ) : int|false
public getLinkTarget ( ) : string|false
public getMTime ( ) : int|false
public getOwner ( ) : int|false
public getPath ( ) : string
public getPathInfo ( string|null $class = null ) : SplFileInfo|null
public getPathname ( ) : string
public getPerms ( ) : int|false
public getRealPath ( ) : string|false
public getSize ( ) : int|false
public getType ( ) : string|false
public isDir ( ) : bool
public isExecutable ( ) : bool
public isFile ( ) : bool
public isLink ( ) : bool
public isReadable ( ) : bool
public isWritable ( ) : bool
public openFile ( string $mode = "r" , bool $useIncludePath = false , resource|null $context = null ) : SplFileObject
public setFileClass ( string $class = SplFileObject::class ) : void
public setInfoClass ( string $class = SplFileInfo::class ) : void
public __toString ( ) : string
}

Table of Contents

User Contributed Notes

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