Php/docs/class.globiterator
(PHP 5 >= 5.3.0, PHP 7)
类摘要
GlobIterator extends FilesystemIterator implements SeekableIterator , Countable {
public __construct
( string $pattern
[, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO
] )
public count ( ) : int
/* 继承的方法 */
public FilesystemIterator::__construct
( string $path
[, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS
] )
public FilesystemIterator::current ( ) : mixed
public FilesystemIterator::getFlags ( ) : int
public FilesystemIterator::key ( ) : string
public FilesystemIterator::next ( ) : void
public FilesystemIterator::rewind ( ) : void
public FilesystemIterator::setFlags
([ int $flags
] ) : void
}
Table of Contents
- GlobIterator::__construct — Construct a directory using glob
- GlobIterator::count — Get the number of directories and files
/* 方法 */