title: PHP Excel from array merge cells
body: <p>I export a table of participants. I have a form for the participants, where I have dynamically generated section for choosing meals. It comes from array like this:</p>
  
  <pre><code>$days = array(
      array(
          'title' =&gt; 'Saturday',
          'meals' =&gt; array(
              array(
                  'title' =&gt; 'Brf',
                  'price' =&gt; 25
              ),
              array(
                  'title' =&gt; 'Lnch',
                  'price' =&gt; 60
              ),
              array(
                  'title' =&gt; 'Dnr',
                  'price' =&gt; 35
              )
          )
      )
  );
  </code></pre>
  
  <p>I need to merge and center day titles (Thursday, Friday...) and merge with number of cells on the right. The number of merged cells equals to <code>count($days[$day]['meals'])</code>.</p>
  
  <p>The goal looks like this:
  <a href="https://i.stack.imgur.com/g4Qp0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g4Qp0.png" alt="The goal of all this"></a></p>
  
  <p>I use creating table from array <code>$PHPexcelsheet-&gt;from_array($a);</code> for table data. If it could be used for the header too, would be nice, but not necessary.</p>