A PHP Function to get an array of files within a directory