Search Results
Examples ¶ Example #1 FilesystemIterator::key () example This example demonstrates the difference between the FilesystemIterator::KEY_AS_PATHNAME and FilesystemIterator::KEY_AS_FILENAME flags.
Mar 14, 2026 · FilesystemIterator::setFlags (PHP 5 >= 5.3.0, PHP 7, PHP 8) FilesystemIterator::setFlags — Sets handling flags
Nov 26, 2019 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
This example demonstrates the difference between the FilesystemIterator::KEY_AS_PATHNAME and FilesystemIterator::KEY_AS_FILENAME flags.
PHP Manual Function Reference Other Basic Extensions SPL Iterators FilesystemIterator
FilesystemIterator::OTHER_MODE_MASK Mask used for FilesystemIterator::getFlags () and FilesystemIterator::setFlags (). 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.
(PHP 5 >= 5.3.0, PHP 7, PHP 8) FilesystemIterator::setFlags — Sets handling flags
