A bit stuck in this and hopes for some help. I am trying to get the last modified directory from a path in a string. I know that there is a function called " is_dir ", and I have done some research, but it seems it cannot make anything work.
I do not have a code, sorry.
<?php
$path = '../../images/';
?>
For example: In the above path variable there are 5 subfolders inside the "images" directory. I want to output "sub5" - this is the last modified folder.
source
share