Most recent created subdirectory in directory (PHP) : <p>For example - I have some subdirectory like this in ftp:</p>

<pre><code>public_html/raports/pdf/
</code></pre>

<p>And in 'pdf' folder there are automatically created folders by month and year like: 07.2017, 08.2017, 09.2017 ... etc. </p>

<p>I would like to create href link to the last created or last modified folder in directory given above. How to do it in PHP?</p>

<p>Thanks!</p>
