1

I have seen many tackling the problem of getting the latest created FILES in a given directory PHP: Get the Latest File Addition in a Directory and How to get the newest file in a directory in php; however, how can I get the name of the newly created FOLDER in this directory using PHP?

Community
  • 1
  • 1
user001
  • 11
  • 2
  • 1
    In the first example you linked, function used is `is_file`. There's a function called `is_dir`. You should be able to figure it out on your own using these hints. – Mjh Aug 04 '16 at 09:51
  • I'm glad you got it on your own! :) – Mjh Aug 04 '16 at 10:35

0 Answers0