« FilterIterator::valid
GlobIterator::__construct »
PHP Manual
迭代器
The GlobIterator class
The GlobIterator class
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
简介
遍历一个文件系统行为类似于
glob()
.
类摘要
class
GlobIterator
extends
FilesystemIterator
implements
SeekableIterator
,
Countable
{
/* 方法 */
public
count
():
int
/* 继承的方法 */
public
FilesystemIterator::current
():
string
|
SplFileInfo
|
FilesystemIterator
public
FilesystemIterator::getFlags
():
int
public
FilesystemIterator::key
():
string
public
FilesystemIterator::next
():
void
public
FilesystemIterator::rewind
():
void
public
FilesystemIterator::setFlags
(
int
$flags
):
void
}
目录
GlobIterator::__construct
— Construct a directory using glob
GlobIterator::count
— Get the number of directories and files