Search Results
Table of Contents ¶ FilesystemIterator::__construct — Constructs a new filesystem iterator FilesystemIterator::current — The current file FilesystemIterator::getFlags — Get the handling flags FilesystemIterator::key — Retrieve the key for the current file FilesystemIterator::next — Move to the next file FilesystemIterator::rewind — Rewinds back to the beginning FilesystemIterator ...
- RecursiveIteratorIterator
The RecursiveIteratorIterator class Table of Contents ¶...
- DirectoryIterator
The DirectoryIterator class Introduction ¶ The...
- RecursiveDirectoryIterator
The RecursiveDirectoryIterator class Table of Contents ¶...
- RecursiveArrayIterator
Introduction ¶ This iterator allows for unsetting and...
- RegexIterator
RegexIterator Flags ¶ RegexIterator::USE_KEY Special flag:...
- MultipleIterator
The MultipleIterator class Table of Contents ¶...
- GlobIterator
The GlobIterator class
- RecursiveTreeIterator
The RecursiveTreeIterator class
- RecursiveIteratorIterator
Nov 26, 2019 · The FilesystemIterator::key () function is an inbuilt function in PHP which is used to retrieve the key for the current file. Syntax: string FilesystemIterator::key( void ) Parameters: This function does not accept any parameters. Return Value: This function returns the pathname or filename depending on the set flags. Below programs illustrate the FilesystemIterator::key () function in PHP ...
Mar 16, 2026 · Same as FilesystemIterator::KEY_AS_FILENAME | FilesystemIterator::CURRENT_AS_FILEINFO. FilesystemIterator::SKIP_DOTS Skips dot files (. and ..). FilesystemIterator::UNIX_PATHS Makes paths use Unix-style forward slash irrespective of system default. Note that the path that is passed to the constructor is not modified.
The FilesystemIterator class Introduction (PHP 5 >= 5.3.0, PHP 7) The Filesystem iterator Class synopsis FilesystemIterator extends DirectoryIterator implements SeekableIterator { /* Constants */ const int CURRENT_AS_PATHNAME = 32 ; const int CURRENT_AS_FILEINFO = 0 ;
The FilesystemIterator class Introduction (PHP 5 >= 5.3.0, PHP 7) The Filesystem iterator Class synopsis FilesystemIterator extends DirectoryIterator implements SeekableIterator { /* Constants */ const int CURRENT_AS_PATHNAME = 32 ; const int CURRENT_AS_FILEINFO = 0 ; const int CURRENT_AS_SELF = 16 ; const int CURRENT_MODE_MASK = 240 ; const int KEY_AS_PATHNAME = 0 ; const int KEY_AS_FILENAME ...
(PHP 5 >= 5.3.0, PHP 7, PHP 8) FilesystemIterator::key — Retrieve the key for the current file
PHP Manual Function Reference Other Basic Extensions SPL Iterators FilesystemIterator
