【发布时间】:2016-01-25 17:45:46
【问题描述】:
<?php
$dit = new DirectoryIterator('.');
while ($dit->valid()) {
if (!$dit->isDot()) {
echo $dit->getFilename() . "\n";
}
$dit->next();
}
unset($dit);
?>
'.' 是什么意思DirectoryIterator 方法中的参数均值?
【问题讨论】:
-
你考虑过reading the manual吗?
-
点代表当前目录,但是是的,请阅读手册。
-
是的@Quentin 我只是 php 的初学者。
标签: php