title: Generate table with merged cells
body: <p>I need some help with tables.</p>
  
  <p>I've got some example data: </p>
  
  <pre><code>array
    0 =&gt; 
      array
        'ID' =&gt; string '1' (length=1)
        0 =&gt; string '1' (length=1)
        'Name' =&gt; string 'Jon' (length=3)
        1 =&gt; string 'Jon' (length=3)
        'SecondName' =&gt; string 'Dee' (length=3)
        2 =&gt; string 'Dee' (length=3)
        'Date' =&gt; string '3, 2011' (length=7)
        3 =&gt; string '3, 2011' (length=7)
        'TotalHours' =&gt; string '06:48' (length=5)
        4 =&gt; string '06:48' (length=5)
        'TotalFee' =&gt; string '124' (length=3)
        5 =&gt; string '124' (length=3)
    1 =&gt; 
      array
        'ID' =&gt; string '3' (length=1)
        0 =&gt; string '3' (length=1)
        'Name' =&gt; string 'Some ' (length=5)
        1 =&gt; string 'Some ' (length=5)
        'SecondName' =&gt; string 'Preson' (length=6)
        2 =&gt; string 'Preson' (length=6)
        'Date' =&gt; string '3, 2011' (length=7)
        3 =&gt; string '3, 2011' (length=7)
        'TotalHours' =&gt; string '32:06' (length=5)
        4 =&gt; string '32:06' (length=5)
        'TotalFee' =&gt; string '436' (length=3)
        5 =&gt; string '436' (length=3)
    2 =&gt; 
      array
        'ID' =&gt; string '3' (length=1)
        0 =&gt; string '3' (length=1)
        'Name' =&gt; string 'Some ' (length=5)
        1 =&gt; string 'Some ' (length=5)
        'SecondName' =&gt; string 'Preson' (length=6)
        2 =&gt; string 'Preson' (length=6)
        'Date' =&gt; string '4, 2011' (length=7)
        3 =&gt; string '4, 2011' (length=7)
        'TotalHours' =&gt; string '10:00' (length=5)
        4 =&gt; string '10:00' (length=5)
        'TotalFee' =&gt; string '1345' (length=4)
        5 =&gt; string '1345' (length=4)
  </code></pre>
  
  <p>Now I'm trying to dynamically create html table with this data grouped by person, so Name/Second name wont repeat in every row. Is it possible to merge Name cells?</p>
  
  <pre><code>/-----------------------------------------\
  |          | month 1 |  hours  |   cash   |
  | Person 1 |------------------------------|
  |          | month 2 |  hours  |   cash   |
  |-----------------------------------------|
  | Person 2 | month 1 |  hours  |   cash   |
  \-----------------------------------------/
  </code></pre>
  
  <p>etc...
  Is it possible?</p>