Get All Files Into An Array

Description: This loads all of the file names in a given directory into an array.

<?PHP
 
$files = GLOB('/path/to/some/directory/*.*');
 
PRINT_R($files);
 
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.