title: Read each line of text of each file in a directory and place into array?
body: <p>I have a directory with text files in it and new text files getting added each day. Each text file is a school lesson with 4 lines of text. Line 1 is Lesson Number, line 2 is Lesson Title, line 3 is Description, and line 4 is Due Date.</p>
  
  <p>I need, in PHP, to be able to read all current and future text files and place them into an HTML table. 4 columns in a table labeled Lesson Number, Lesson Title, Description, and Due Date. Each text file being 1 table row.</p>
  
  <p>I've made a site to help out some homeschooled students but wanted to add this functionality to the site to help them view all past, present, and future lessons. I know a little PHP but can't wrap my head around it and it seems the more I try the more I'm getting confused. This is a learning experience for me.</p>
  
  <p>I've tried using <code>fopen</code> but can only get it to open a text file and not a whole directory. I was thinking I need to get a directory listing, place that into an array, and use <code>fopen</code> to open each file in the array but I may be way off. Any help to point me in the right direction is greatly appreciated!</p>