how to display all images from folder in php code example
Example: Extract images from a folder in php
<?php
function rasmname(){
$dirname = "./";
$images = glob($dirname."*.jpg");
foreach($images as $image) {
echo '<img src="'.$image.'" /><br />';
}
}
rasmname();