DirectoryIterator::isDot
(PHP 5.1.0)
DirectoryIterator::isDot — Returns true if current entry is '.' or '..'
Описание
bool DirectoryIterator::isDot
( void
)
Список параметров
This function has no parameters.
Возвращаемые значения
TRUE if the entry is . or ..,
otherwise FALSE
Примеры
Пример #1 A DirectoryIterator::isDot example
This example will list all files, omitting the . and
.. entries.
<?php
$dir = new DirectoryIterator(dirname(__FILE__));
foreach ($dir as $fileinfo) {
if (!$fileinfo->isDot()) {
echo 'Filename '.$fileinfo->getFilename().PHP_EOL;
}
}
?>