PHPExcel: How to get style from a row or range of cells and apply to another
<p>I'm trying to get the style of a row e.g. ("A3:V3"), pass it to an array, and then use that array with the <code>applyFromArray();</code> function.</p>

<p>Here is what i tried:</p>

<pre><code>$objPHPExcel = $objReader-&gt;load($inputFileName);
$sheet = $objPHPExcel-&gt;getActiveSheet();
$style = $sheet-&gt;getStyle("A3:V3");
$sheet-&gt;getStyle("A$totalRows:V$totalRows")-&gt;applyFromArray($style);
</code></pre>

<p>This throws the error <strong>'Invalid style array passed.'</strong></p>

<p>Is there any workaround for this?</p>