Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eurowebpage/13eb708e8d2f6ed0d8485840c601a561 to your computer and use it in GitHub Desktop.
Save eurowebpage/13eb708e8d2f6ed0d8485840c601a561 to your computer and use it in GitHub Desktop.
afficher-toutes-les-images-d-un-dossier
<?php
$files = glob("img/*.*");
for ($i = 0; $i < count($files); $i++) {
$image = $files[$i];
echo '<img src="'.$image.'" class="img-fluid" />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment