PhpWord add table in header/footer
<p>When i add into header or footer table - i get one column.</p>

<p>Looks like in header/footer is ignored addRow() method.</p>

<pre><code>$phpWord = new \PhpOffice\PhpWord\PhpWord();

    $section = $phpWord-&gt;addSection();
    $header = $section-&gt;addHeader();
    $table = $header-&gt;addTable(['columnWidths' =&gt; 200, 'borderColor' =&gt; '000000', 'borderWidth' =&gt; 5]);
    $table-&gt;addRow(200);
    $table-&gt;addCell(100)-&gt;addText("Col 1");
    $table-&gt;addCell(100)-&gt;addText("Col 2");

    $table-&gt;addRow(200);
    $table-&gt;addCell(100)-&gt;addText("Col 1");
    $table-&gt;addCell(100)-&gt;addText("Col 2");
</code></pre>

<p>So why not working my table?</p>