DirectoryIterator
PHP Manual

DirectoryIterator::isDot

(PHP 5)

DirectoryIterator::isDotReturns true if current entry is '.' or '..'

Описание

bool DirectoryIterator::isDot ( void )

Check whether the current entry is a directory and either . or ...

Список параметров

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;
    }
}
?>


DirectoryIterator
PHP Manual

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/toplevels/data/www/maripoza.ru/fc7a82cd8e0116192ce432b06b9bd9c9/sape.php on line 219

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/toplevels/data/www/maripoza.ru/fc7a82cd8e0116192ce432b06b9bd9c9/sape.php on line 225