PHP Tutorial FileSystemIterator
Iterator
- Create a new filesystem iterator in PHP
- List the contents of a directory using a while loop with FilesystemIterator::next in PHP
- List the contents of the directory containing the script in PHP
- Retrieve the key for the current file in FilesystemIterator in PHP
- Rewind back to the beginning with FilesystemIterator::rewind in PHP
- Show difference between FilesystemIterator::KEY_AS_PATHNAME and FilesystemIterator::KEY_AS_FILENAME flags in PHP