I saw a function someone had written and can't find it now.
Guess I have to write one for myself. Here's what I'm hoping to do.
Read the files from the directory, display them formated. This is already done.
The tricky part is excluding files. Of course I can do:
substr($entry, -3) != 'LCK' && etc.
But the function I'm thinking of did something really elegant, it stored the extensions in an array and then somehow excluded (or included) files with an extension that was in the array.
Is there a quick and easy shortcut for doing this, or do I just write a function that loops through the array one by one and return true if there is a match?
Thanks for your help,
Matt