title: How do you get a directory listing sorted by creation date in PHP?
body: <p>I have to list directories by using scandir() function but result array should be sorted according to date and time of directory created.</p>
  
  <p>Regards
  Deepak</p>