Created
April 7, 2020 12:51
-
-
Save eurowebpage/13eb708e8d2f6ed0d8485840c601a561 to your computer and use it in GitHub Desktop.
afficher-toutes-les-images-d-un-dossier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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