title: Fetching HTML table elements into an array
body: <p>I need to fetch lessons from an online timetable(for a school) into an array. So i can insert the data into my database. The online timetable(url: <a href="http://roosters-hd.stenden.com/Reporting/Individual?objectclass=Student+Set+Groups&amp;idtype=id&amp;identifier=%23SPLUSD3D4E7&amp;days=1;2;3;4;5;&amp;periods=1-56&amp;t=SWSCUST+StudentSetGroup+Individual&amp;weeks=42;&amp;template=SWSCUST+StudentSetGroup+Individual" rel="nofollow noreferrer">roosters-hd.stenden.com</a>) looks like this: </p>
  
  <p><a href="https://imgur.com/PAAxzwH" rel="nofollow noreferrer"><img src="https://i.imgur.com/PAAxzwH.png" title="Hosted by imgur.com" /></a> On the left hand we see the times, and on top the schooldays (Mo, Tu, We, Th, Fr). Very basic.</p>
  
  <p>Each lesson contains 6 values that i need to fetch.
  <a href="https://imgur.com/BnUMZBm" rel="nofollow noreferrer"><img src="https://i.imgur.com/BnUMZBm.png" title="Hosted by imgur.com"/></a></p>
  
  <p>Besides that, I also need to fetch the [startDate] and [endDate]. Time is based on which row the lesson-cell is at, and how much rowspan it has. Date can be calculated by adding column number onto the start date(printed on top).
  So in the end the array would look something like this: </p>
  
  <pre><code>[0] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [Name] =&gt; Financiering
                      [Type] =&gt; WC
                      [Code] =&gt; DECBE3
                      [Classroom] =&gt; E2.053 - leslokaal
                      [Teacher] =&gt; Verboeket, Erik (E)
                      [Class] =&gt; BE1F, BE1B, BE1A
                      [StartDate] =&gt; 04/06/2013 08:30:00
                      [EndDate] =&gt; 04/06/2013 10:00:00
                  )
                  etc.
  </code></pre>
  
  <p>Because my lack of experience in fetching data, I will properly end up with a highly inefficient and inflexible solution. Like should i use XML-parser? Or Regex? Any ideas on how to tackle this problem?</p>