List images from a directory depending the uploaded date
<p>I have a piece of code that print images from a directory.</p>

<pre><code>&lt;?
$directory = 'assets/images/';
$files = glob($directory."*.{jpg}", GLOB_BRACE);
$filecount = count($files);

for($i=1; $i&lt;=$filecount; $i++) {
    echo '&lt;img src="'.$file.'" class="img-responsive"&gt;';
}
?&gt;
</code></pre>

<p>It's working perfectly.</p>

<p>Except that I want to display my image depending the uploaded date.</p>

<p>Is it possible please ?</p>

<p>Thanks.</p>