I am trying to make a site which will echo all the images in a directory to the page but when I am echoing them it creates a separate div for each.
foreach($images as $img) {
echo "<div class=\"container\"><img class=\"photo\" src=\"{$img['file']}\" {$img['size'][3]} alt=\"\">
</div>";
}