List Directory Contents in PHP

This code allows to list the contents of any given directory.

Usage

echo list_directory_content('images/image.png');

 

Comments