Search Results

  1. 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 ...

  2. 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 ...

  3. 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.

  4. 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 ;

  5. 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 ...

  6. (PHP 5 >= 5.3.0, PHP 7, PHP 8) FilesystemIterator::key — Retrieve the key for the current file

  7. PHP Manual Function Reference Other Basic Extensions SPL Iterators FilesystemIterator