Looks in any directory you specify and gets all the files with extensions given by you. Returns them as an array that you can do anything with, I used it to pick four photos
from the photo album directory at random (sort of random) and display them in the footer of a page. Works around open_basedir restrictions.