$directory = "img/*/";

// file type
$images = glob(“” . $directory . “*.gif”);

foreach ($images as $image) {
echo ‘ ‘;
}

?>