scandir
Introduction
File System Related Extensions
PHP Manual
File Information
Introduction
Installing/Configuring
Installation
Runtime Configuration
Resource Types
Predefined Constants
Fileinfo Functions
finfo_buffer
— Return information about a string buffer
finfo_close
— Close fileinfo resource
finfo_file
— Return information about a file
finfo_open
— Create a new fileinfo resource
finfo_set_flags
— Set libmagic configuration options
scandir
Introduction
File System Related Extensions
PHP Manual