title: Get all the files in directory with the created date in an array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2084986/file-creation-time">File creation time</a>  </p>
  </blockquote>
  
  
  
  <p>I want to get all the files in a directory along with its date of creation in array. </p>
  
  <p>I saw the <code>scandir</code> function, but it returns even the directory which I don't want. I also figured out that <code>filemtime($filename)</code> function can return the file created date. Just not able to put it together.</p>