It is used to glob() function
<?php
$files = glob('images/*.*');
To display images useing for loop method
for( $i=1; $i<count($files); $i++)
{
$imagenum = $file[$i];
print $imagenum.'<br>';
echo '<img src="'.$imagenum.'" />'.'<br>';
}
?>
Sign up here with your email