readdir

PHP 4, PHP 5, PHP 7, PHP 8
readdir - Read entry from directory handle
Manual
Code Examples

Example #1 List all entries in a directory

PHP Version:

Example #2 List all entries in the current directory and strip out . and ..

PHP Version:


Function readdir:

Directories Functions

Most used PHP functions