PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

The DirectoryIterator class

(PHP 5, PHP 7)

简介

The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.

类摘要

DirectoryIterator extends SplFileInfo implements SeekableIterator {
/* 方法 */
public __construct ( string $path )
public current ( void ) : DirectoryIterator
public getATime ( void ) : int
public getBasename ([ string $suffix ] ) : string
public getCTime ( void ) : int
public getExtension ( void ) : string
public getFilename ( void ) : string
public getGroup ( void ) : int
public getInode ( void ) : int
public getMTime ( void ) : int
public getOwner ( void ) : int
public getPath ( void ) : string
public getPathname ( void ) : string
public getPerms ( void ) : int
public getSize ( void ) : int
public getType ( void ) : string
public isDir ( void ) : bool
public isDot ( void ) : bool
public isExecutable ( void ) : bool
public isFile ( void ) : bool
public isLink ( void ) : bool
public isReadable ( void ) : bool
public isWritable ( void ) : bool
public key ( void ) : string
public next ( void ) : void
public rewind ( void ) : void
public seek ( int $position ) : void
public __toString ( void ) : string
public valid ( void ) : bool
}

更新日志

版本 说明
5.1.2 DirectoryIterator extends SplFileInfo.

Table of Contents