Created
April 7, 2020 12:38
-
-
Save eurowebpage/10744dd473bc22904773e87a10189925 to your computer and use it in GitHub Desktop.
afficher-images-PNG-uniquement
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 | |
$dirname = "img/"; // répertoire | |
$images = glob($dirname."*.png"); | |
foreach($images as $image) { | |
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