$value){ if(in_array($value,$file_types)){ $image_rotation .= ''; $image_thumbs .= ''; $imgId++; } } } } closedir($handle); } ?>