FilesystemIterator::key

(PHP 5 >= 5.3.0, PHP 7) Retrieve the key for the current file public string FilesystemIterator::key ( void ) Returns: Returns the pathname or filename depending on the set flags. See the FilesystemIterator constants. Examples: FilesystemIterator::key() example This example will list the contents of the directory containin

FilesystemIterator::getFlags

(PHP 5 >= 5.3.0, PHP 7) Get the handling flags public int FilesystemIterator::getFlags ( void ) Gets the handling flags, as set in FilesystemIterator::__construct() or FilesystemIterator::setFlags(). Returns: The integer value of the set flags. See also: FilesystemIterator::__construct() -

FilesystemIterator::current

(PHP 5 >= 5.3.0, PHP 7) The current file public mixed FilesystemIterator::current ( void ) Get file information of the current element. Returns: The filename, file information, or $this depending on the set flags. See the FilesystemIterator constants. Examples: FilesystemIterator::current() example This example will lis

FilesystemIterator::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new filesystem iterator public FilesystemIterator::__construct ( string $path [, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS ] ) Constructs a new filesystem iterator from the path. Parameters: path The path of the filesystem item to be iterated over.

EmptyIterator::valid

(PHP 5 >= 5.1.0, PHP 7) The valid() method public bool EmptyIterator::valid ( void ) The EmptyIterator valid() method. Returns: FALSE This function is currently not documented; only its argument list is available.

EmptyIterator::rewind

(PHP 5 >= 5.1.0, PHP 7) The rewind() method public void EmptyIterator::rewind ( void ) No operation, nothing to do. Returns: No value is returned. This function is currently not documented; only its argument list is available.

EmptyIterator::next

(PHP 5 >= 5.1.0, PHP 7) The next() method public void EmptyIterator::next ( void ) No operation, nothing to do. Returns: No value is returned. This function is currently not documented; only its argument list is available.

EmptyIterator::key

(PHP 5 >= 5.1.0, PHP 7) The key() method public scalar EmptyIterator::key ( void ) This function must not be called. It throws an exception upon access. Returns: No value is returned. This function is currently not documented; only its argument list is available. Exception: Throws an Exception if called.

EmptyIterator::current

(PHP 5 >= 5.1.0, PHP 7) The current() method public mixed EmptyIterator::current ( void ) This function must not be called. It throws an exception upon access. Returns: No value is returned. This function is currently not documented; only its argument list is available. Exception: Throws an Exception if called.

DirectoryIterator::valid

(PHP 5, PHP 7) Check whether current DirectoryIterator position is a valid file public bool DirectoryIterator::valid ( void ) Check whether current DirectoryIterator position is a valid file. Returns: Returns TRUE if the position is valid, otherwise FALSE Examples: A DirectoryIterator::valid() example <?php $iterator =