Forum Moderators: coopster
$validTypes = array(
"app" => array("jad", "jar", "mpn"),
"img" => array("gif", "jpg", "jpeg", "png", "thm", "tif", "tiff"),
"snd" => array("aac", "amr", "mid", "mmf", "mp3"),
"txt" => array("ini", "nfo", "txt"),
"vid" => array("3g2", "3gp", "mp4", "mpg")
);
The question is, how do I traverse this array and return:
- If the extension was found on list
- What type (app, img, snd...) was the file
Thanks in advance. I totally suck with arrays on PHP!